You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the latest code changes in version 2.54.0 (introducing extra_headers), we started receiving an error while reading a file from gcs using the following code.
Just wanted to report that and wanted to know if this extra_headers field can be removed.
Code : <following apache-beam python code, we used to read GCS files>
import apache_beam as beam
with beam.Pipeline() as pipeline:
# Read from the input file on GCS
lines = pipeline | beam.io.ReadFromText(GCS_URI)
Encountered Error:
Match operation failed with exceptions {'gs://mappings/transaction.ndjson': TypeError("Client.__init__() got an unexpected keyword argument 'extra_headers'")}
The text was updated successfully, but these errors were encountered:
@ajitsonawane1 - Google recommendation :We'd recommend that you install v2.16.0 (the latest version) of the google-cloud-storage to resolve this issue. It worked for me
@ajitsonawane1 - Google recommendation :We'd recommend that you install v2.16.0 (the latest version) of the google-cloud-storage to resolve this issue. It worked for me
This worked for me too. Thanks! I had been stuck on this for a while :)
beam/sdks/python/apache_beam/io/gcp/gcsio.py
Line 116 in fb3f669
With the latest code changes in version 2.54.0 (introducing extra_headers), we started receiving an error while reading a file from gcs using the following code.
Just wanted to report that and wanted to know if this
extra_headers
field can be removed.Code : <following apache-beam python code, we used to read GCS files>
Encountered Error:
The text was updated successfully, but these errors were encountered: