You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that this is caused by the botocore upgrade to 1.11.0, in particular #1495 which uses a newer (non-vendored) version of urllib3; that later version adds a header parsing check, and logs a warning (but continues) if the check fails.
I would think that the official Python client for S3 shouldn't be logging warnings. :p
The text was updated successfully, but these errors were encountered:
Thanks for digging into this, it looks like you have a PR for urllib3 (urllib3/urllib3#1439) that fixes this issue. Once this fix is in urllib3 we can update our version range to pull in this latest version.
I agree that all botocore needs to do is require an updated version of urllib3 (once the PR is accepted and released).
Just by way of information for anyone reading this issue, the problem only occurs when the content-type of the object requested from S3 is message/*; for example message/rfc822 was the type that specifically triggered the issue for me. There's more details in urllib3/urllib3#1438.
Since upgrading
botocore
to >= 1.11.0, the following warning is logged when reading S3 objects:The code to demonstrate this uses
django-storages
, and is running on an EC2 instance that has role-based access to the S3 bucket in question:It seems that this is caused by the
botocore
upgrade to 1.11.0, in particular #1495 which uses a newer (non-vendored) version ofurllib3
; that later version adds a header parsing check, and logs a warning (but continues) if the check fails.I would think that the official Python client for S3 shouldn't be logging warnings. :p
The text was updated successfully, but these errors were encountered: