-
Notifications
You must be signed in to change notification settings - Fork 63
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
Unicode headers name + SSL + big bodies #24
Comments
Interesting -- I wonder if #29 is related to this. Does removing this line from /usr/lib/python2.7/site-packages/requests_aws4auth/aws4auth.py also workaround the error you see with SSL?
|
@jamshid after much debugging with the help from folks over at urllib3, the unicode headers are definitely the issue. Commenting out the Hope this helps. |
@lasote Thank you! Solved with your workaround. |
How to work around this without patching the library? EDIT: Monkey patch on the first post solves the issue. |
The AWS4AuthNotUnicode fix worked for me. Wondering if this is also an issue on python3? (For future reference, this code was on python2.) |
When a body is very big, using SSL, the unicode header names filled by aws4auth makes the requests crash:
OpenSSL.SSL.Error: [('SSL routines', 'SSL3_WRITE_PENDING', 'bad write retry')]
More info: https://www.bountysource.com/issues/27417596-ssl3_write_pending-error-from-urllib3-contrib-pyopenssl-sendall
I've solved making a wrapper that converts to str the header names:
The text was updated successfully, but these errors were encountered: