-
Notifications
You must be signed in to change notification settings - Fork 236
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
Fix package upload using PyOpenSSL #244
Conversation
Request body must only use bytes, rather than unicode objects. Using `six.b` together with `unicode_literals` does not work correctly - on Python 2.7, `six.b` is a pass-through (i.e. `lambda x: x`). If we are using `unicode_literals`, then we should explicitly encode or use `b'strings'` where appropriate. Fixes #222, anaconda-graveyard/anaconda-build#108
This won't work because of this traceback:
|
Ok.. I think this is blocked on urllib3/urllib3#717 then. As far as I can tell, this may be a while - a new version of urllib3 will need to be released, and then a new version of requests including the updated urllib3. |
try reproducing it, not sure if that was a fringe case or not. |
I can reproduce this. Based on the linked bug, it would occur anytime the uploaded data is large enough. Perhaps we should require |
if that's the fix, I would suggest talking with more people. |
Do we know what message was sent? |
I think I lost the context, @srossross , what do you mean? |
how can I reproduce this issue? I can't seem to reproduce with this environment:
|
to reproduce: |
This should remain in place until urllib3/urllib3#717 and kennethreitz/requests#2848 are released.
200aabb
to
e6fa14c
Compare
👍 |
Fix package upload using PyOpenSSL
Request body must only use bytes, rather than unicode objects.
Using
six.b
together withunicode_literals
does not work correctly -on Python 2.7,
six.b
is a pass-through (i.e.lambda x: x
). If we areusing
unicode_literals
, then we should explicitly encode or useb'strings'
where appropriate.Fixes #222, anaconda-graveyard/anaconda-build#108