pd.read_parquet("gs://...") fails with CURL error 56 when HTTPS_PROXY is set, pyarrow 23 C++ GCS client ignores NO_PROXY #49979
Replies: 1 comment
|
Two separate facts stack up here NO_PROXY really is dropped on the C++ path handle_.SetOption(CURLOPT_NOPROXY, "metadata.google.internal");Once storage_options={} did not fix pyarrow it swapped the backend if storage_options is None:
fs, path_or_handle = pa_fs.FileSystem.from_uri(path)
So
import gcsfs
pd.read_parquet("gs://bucket/path", filesystem=gcsfs.GCSFileSystem())Passing the filesystem directly is more stable than relying on the |
Uh oh!
There was an error while loading. Please reload this page.
We recently upgraded from pyarrow=12 to pyarrow=23 and started seeing this error when reading parquet files from GCS in environments where HTTPS_PROXY is set:
OSError: google::cloud::Status(UNAVAILABLE: Retry policy exhausted ...
PerformWork() - CURL error [56]=Failure when receiving data from the peer)
After investigating, we found that setting empty storage option was letting me read the file
df = pd.read_parquet("gs://bucket/file.parquet", storage_options={})
Questions:
All reactions