Uploaded image for project: 'BrownDog'
  1. BrownDog
  2. BD-1626

bd.py conversion method returning different outputs based on protocol

XMLWordPrintableJSON

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Normal Normal
    • Milestone 5: Beta Release
    • None
    • None
    • None
    • Brown Dog - 2017 May 2, Brown Dog - 2017 June Sprint 1

      POST [https://bd-api.ncsa.illinois.edu/dap/convert/png] works fine

      POST [http://bd-api.ncsa.illinois.edu/dap/convert/png] returns list of available conversions for png.

      kooper helped with debugging this. There is some issue in the way we are sending post requests in bd.py. Requests is not being to handle HTTP error code 307 (redirect) in the special way we are generating multipart requests using a custom method multipart. Two things to do:

      1. As a quick fix, we can send allow_redirects=False and then handle 307 status code (or for that matter any status in the range 300-399) at client side and resend the request to first_response.headers['location']
      2. We need to look deeper to understand how to upload large files and at the sametime have requests handle redirects on it's own.

              sandeeps Sandeep Puthanveetil Satheesan
              sandeeps Sandeep Puthanveetil Satheesan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Time Spent - 3 hours Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - 3 hours Remaining Estimate - 1 hour
                  3h