ajitsonawane1 opened a new issue, #30416:
URL: https://github.com/apache/beam/issues/30416

   
https://github.com/apache/beam/blob/fb3f6692dbf94166ba6f2f0f0427a51c8fd8fb7b/sdks/python/apache_beam/io/gcp/gcsio.py#L116
   
   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'")}
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to