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

Upload of swagger doc ends with 500 response code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0 CR1
    • 2.0 ER5
    • System
    • None

      When larger swagger [1] as imported into acitve docs, the import fails with 500 response code, and following line appears in log

      017-03-28 11:05:56' WHERE `api_docs_services`.`id` = 1):
        app/controllers/admin/api_docs/services_controller.rb:53:in `block in update'
        app/controllers/admin/api_docs/services_controller.rb:52:in `update'
        lib/three_scale/middleware/multitenant.rb:116:in `_call'
        lib/three_scale/middleware/multitenant.rb:111:in `call'
        lib/action_dispatch/rails5_ssl.rb:86:in `call'
      
      
      10.40.3.111 - - [28/Mar/2017:11:05:56 +0000] "PATCH /500 HTTP/1.1" 500 - 7.2354
      

      The doc has ~2.5 Mb, when we've tried doc with 1.4 Mb it was saved and presented by 3scale.

      [1] https://raw.githubusercontent.com/openshift/origin/master/api/swagger-spec/openshift-openapi-spec.json

              Unassigned Unassigned
              mjaros@redhat.com Miroslav Jaroš (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: