Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-66

Custom active docs in swagger for custom service are always returning 404 for any request.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0 ER4
    • 2.0 ER3
    • System
    • None
    • Hide

      I have been using this template:
      https://github.com/Azure/api-management-samples/blob/master/apis/httpbin.swagger.json
      and also with modification to use gateway proxy => I have set host to our openshift staging gateway.

      The name of the documentation is not a same with the service name, but I don't think that should be a problem. (I have called it httpbin, but service is called auth-user-key)

      Show
      I have been using this template: https://github.com/Azure/api-management-samples/blob/master/apis/httpbin.swagger.json and also with modification to use gateway proxy => I have set host to our openshift staging gateway. The name of the documentation is not a same with the service name, but I don't think that should be a problem. (I have called it httpbin, but service is called auth-user-key)

      When I created active docs for custom service I'm getting 404 for any request done through UI in either admin portal or developer portal.

      And we are getting this log from the system-app:
      Error log link

      [8ab4fb2a-6aa4-40bb-89af-b456c5c6fff6] [3scale-admin.cloudapps.api-qe.eng.rdu2.redhat.com] [10.128.0.1] Started GET "/api_docs/proxy?_=1487596397134" for 10.128.0.1 at 2017-02-20 13:13:14 +0000
      [8ab4fb2a-6aa4-40bb-89af-b456c5c6fff6] [3scale-admin.cloudapps.api-qe.eng.rdu2.redhat.com] [10.128.0.1] Processing by ApiDocs::ProxyController#show as JSON
      [8ab4fb2a-6aa4-40bb-89af-b456c5c6fff6] [3scale-admin.cloudapps.api-qe.eng.rdu2.redhat.com] [10.128.0.1]   Parameters: {"_"=>"1487596397134"}
      [8ab4fb2a-6aa4-40bb-89af-b456c5c6fff6] [3scale-admin.cloudapps.api-qe.eng.rdu2.redhat.com] [10.128.0.1] [api_docs/proxy] not doing anything, you should run the api docs proxy
      [8ab4fb2a-6aa4-40bb-89af-b456c5c6fff6] [3scale-admin.cloudapps.api-qe.eng.rdu2.redhat.com] [10.128.0.1] Completed 404 Not Found in 13ms (ActiveRecord: 9.1ms)
      

      Is there something missing or is there any problem on our side?

              Unassigned Unassigned
              pstanko@redhat.com Peter Stanko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: