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

Developer poratl Active Docs is returning 404 errors when Active Docs proxy is used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 2.3 GA
    • System
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      When the Active Docs proxy is used for Active Docs in the developer portal, all the requests returns 404 errors.

      When the Active Docs proxy is disabled, requests through Active Docs function as expected.

      Would like to know the reason for this behavior and a resolution. It is required to utilize Active Docs proxy in this instance.

      Following are the logs from system-developer container.

      Unable to find source-code formatter for language: log. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      ### when http method of request  is POST
      [3scale.aaa.bbb.ccc.com] [xxx.xxx.xxx.xxx] Started POST "/api_docs/proxy?_=1546601754968" for xxx.xxx.xxx.xxx at 2019-01-04 11:35:53 +0000
      [3scale.aaa.bbb.ccc.com] [xxx.xxx.xxx.xxx]
      ActionController::RoutingError (No route matches [POST] "/api_docs/proxy"):
        lib/action_dispatch/rails5_ssl.rb:86:in `call'
      
      
      xxx.xxx.xxx.xxx - - [04/Jan/2019:11:35:53 +0000] "POST /404?_=1546601754968 HTTP/1.1" 404 - 0.0107
      ===================================================================
      
      
      ### when http method of request  is GET
      [3scale.aaa.bbb.ccc.com] [xxx.xxx.xxx.xxx] Started GET "/api_docs/proxy?_=1546601631937" for xxx.xxx.xxx.xxx at 2019-01-04 11:33:50 +0000
      [3scale.aaa.bbb.ccc.com] [xxx.xxx.xxx.xxx] Processing by DeveloperPortal::CMS::NewContentController#show as JSON
      [3scale.aaa.bbb.ccc.com] [xxx.xxx.xxx.xxx]   Parameters: {"_"=>"1546601631937", "path"=>"api_docs/proxy"}
      [3scale.aaa.bbb.ccc.com] [xxx.xxx.xxx.xxx] Handling Exception: Couldn't find CMS::Page with status not_found
      [3scale.aaa.bbb.ccc.com] [xxx.xxx.xxx.xxx] Completed 404 Not Found in 25ms (Views: 0.4ms | ActiveRecord: 9.3ms)
      xxx.xxx.xxx.xxx - - [04/Jan/2019:11:33:50 +0000] "GET /api_docs/proxy?_=1546601631937 HTTP/1.1" 404 - 0.0368
      
      

              Unassigned Unassigned
              cabeywar-cssre Chamal Abeywardhana
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: