Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Initiate Response failing due to no Location header in response #63

@apatil4

Description

@apatil4

I am trying to upload a file to a bucket in gcloud and I am getting an error below on uploading a file

File "/opt/conda/lib/python3.6/site-packages/google/resumable_media/requests/upload.py", line 327, in initiate
    self._process_initiate_response(result)
  File "/opt/conda/lib/python3.6/site-packages/google/resumable_media/_upload.py", line 449, in _process_initiate_response
    response, u'location', self._get_headers)
  File "/opt/conda/lib/python3.6/site-packages/google/resumable_media/_helpers.py", line 64, in header_required
    response, u'Response headers must contain header', name)
google.resumable_media.common.InvalidResponse: ('Response headers must contain header', 'location')

My dependency versions are as follows

google-auth               1.2.1                    pypi_0    pypi
google-cloud-core         0.28.1                   pypi_0    pypi
google-cloud-storage      1.6.0                      py_1    conda-forge
google-resumable-media    0.3.1                    pypi_0    pypi
googleapis-common-protos  1.5.9                      py_0    conda-forge```

I have my service running in a Kubernetes inside a pod (not sure if that matters).

Metadata

Metadata

Assignees

Labels

type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions