GoogleCloudPlatform / GoogleCloudPlatform/gsutil
httplib2 0.16.0+ causes httplib2.RedirectMissingLocation
- Dominant language
- Python
- Stars
- 918
- Forks
- 335
- PR merge metrics
- No merged PRs in 30d
Description
I am using gsutil installed from pip on Debian 9, with Python 2.
When uploading large files to GCS, I am getting this error:
```
httplib2.RedirectMissingLocation: Redirected but the response is missing a Location: header.
```
The issue disappear when downgrading `httplib2` from 0.17.0 or 0.16.0 to 0.15.0
This is probably related to
- https://github.com/httplib2/httplib2/issues/156
- https://github.com/googleapis/google-api-python-client/issues/803
- https://github.com/googleapis/google-api-python-client/pull/813
Contributor guide
Research direction
Start by reproducing a large GCS upload with gsutil on Python 2 and compare httplib2 0.15.0, 0.16.0, and 0.17.0. Read the linked httplib2 and google-api-python-client issues and pull request to determine the compatibility change; done means the failure is explained and a verified resolution is identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100