GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — RequestRangeNotSatisfiable when using a blob's file-handler with csv reader · Issue #403 · googleapis/python-storage
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
RequestRangeNotSatisfiable when using a blob's file-handler with csv reader #403Copy link Copy link Closed Labels api: storageIssues related to the googleapis/python-storage API.type: questionRequest for information or clarification. Not an issue. DescriptionEnvironment details
Steps to reproduce
Code examplefrom os import path import csv from io import StringIO from google.cloud import storage import sys print(f"gcs client version: {storage.__version__}") print(f"python version: {sys.version}") gcs = storage.Client() blob = gcs.get_bucket("my_bocket").get_blob("path/to/my_csv_file.csv") print(f"blob exists: {blob.exists()}") with blob.open() as f: try: data = [row for row in csv.reader(f)] print(f"first method worked: {len(data)} csv lines loaded") except Exception as e: print(f"first method failed: {type(e).__name__}") with blob.open() as f: try: text_data = f.read() buffer = StringIO(text_data) data = [row for row in csv.reader(buffer)] print(f"second method worked: {len(data)} csv lines loaded") except Exception as e: print(f"second method failed: {type(e).__name__}") # ======================= output ======================= # gcs client version: 1.37.0 # python version: 3.8.7 (default, Dec 22 2020, 10:37:26) # [GCC 10.2.0] # blob exists: True # first method failed: RequestRangeNotSatisfiable # second method worked: 83521 csv lines loaded Stack traceThanks! Reacted by Jacques Supcik Activity
MetadataMetadataAssigneesLabelsapi: storageIssues related to the googleapis/python-storage API.type: questionRequest for information or clarification. Not an issue. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |