New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GET request causes HTTP 400 error (OpenStack & potentially other providers) #1487
Comments
I traced the bug down to a single-line of code. A GET request is sent with an empty body The Line of CodeThe code is in A Line 244 of libcloud/http.py (LibcloudConnection class)
Why it's the ProblemWhen a request is prepared, if its body is an empty string Line 420 of requests/adapters.py
A raw HTTP chunked request is sent with no body. As a result only a Line 469 of requests/adapters.py
Issue Appears when Default Value is
|
Summary
HTTP 400 errors are appearing in the logs of our OpenStack server:
ERROR WSGI: code 400, Bad request syntax ('0')
.They appear when sending a GET request.
Wireshark
Detailed Information
Libcloud version: v3.0.0
OS: Ubuntu 14.04.6 LTS
Provider: OpenStack Swift
Service: Storage
Reproducing
I'm not sure how to reproduce this without access to an Openstack server along with the server logs/wireshark to examine the HTTP error. But I would recommend just making a download request.
I traced down the bug to a single-line of code and in a subsequent post will isolate the reason and illustrate the behavior.
The text was updated successfully, but these errors were encountered: