Skip to content

Storage: 416 exception in download with chunked size for 0 byte files #6572

@inferno-chromium

Description

@inferno-chromium

Environment details

  1. Specify the API at the beginning of the title : Storage
  2. OS type and version: Linux, Ubuntu 16
  3. Python version and virtual environment information: 2.7.15
  4. google-cloud-storage-1.12.0

Steps to reproduce

  bucket = client.bucket('clusterfuzz-data')
  blob = bucket.blob('/zero.file', chunk_size=1024 * 1024 * 100)
  blob.download_to_filename('any_local_path')

google.api_core.exceptions.RequestRangeNotSatisfiable: 416 GET https://www.googleapis.com/download/storage/v1/b/clusterfuzz-data/o/zero.file?alt=media: (u'Request failed with status code', 416, u'Expected one of', 200, 206)

Need to fix this similar to googleapis/google-cloud-go#242

Can you suggest a workaround or do a release for this. this is blocking our switch to chunked size.

Orthogonal question: I also wonder why there is no default chunked size, we were hitting silent ooms with python process failures since default chunk size was not set. We were trying this on like 20 gb file.

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.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