Uploaded image for project: 'apiman (API Management)'
  1. apiman (API Management)
  2. APIMAN-1243

Response when API cannot be accessed should be improved

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 1.3.1.Final, 1.3.x
    • 1.2.9.Final, 1.3.0.Final
    • Gateway
    • None
    • Hide

      Define an API to on the localhost using a port that is not listening. Attempt to access the API.

      Show
      Define an API to on the localhost using a port that is not listening. Attempt to access the API.

    Description

      When the API implementation is not available, the current response from the gateway is a 500 status code, the message "io.apiman.gateway.engine.beans.exceptions.ConnectionException: Not connected.", and a stack trace (in releases before 1.3.0, the message was null). This is not very useful to the caller, and it is not really an internal error. A more appropriate status code (maybe 502, Bad Gateway, or 503, Service Unavailable) should be used, with an appropriate message. The stack trace should be in the log for debugging purposes, not returned to the caller.

      Attachments

        Activity

          People

            msavy_jira Marc Savy (Inactive)
            scott.elliott@amdocs.com Scott Elliott (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: