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

   ### What happened?
   
   When I ran a wordcount pipeline with an output set to a bucket in a 
different project (causing permission errors), I saw following output in the 
console:
   
   ```
     File "apache_beam/runners/common.py", line 1731, in 
apache_beam.runners.common._OutputHandler.finish_bundle_outputs
     File "/usr/local/lib/python3.9/site-packages/apache_beam/io/iobase.py", 
line 1202, in finish_bundle
       self.writer.close(),
     File 
"/usr/local/lib/python3.9/site-packages/apache_beam/io/filebasedsink.py", line 
434, in close
       self.sink.close(self.temp_handle)
     File "/usr/local/lib/python3.9/site-packages/apache_beam/io/textio.py", 
line 524, in close
       super().close(file_handle)
     File 
"/usr/local/lib/python3.9/site-packages/apache_beam/io/filebasedsink.py", line 
167, in close
       file_handle.close()
     File 
"/usr/local/lib/python3.9/site-packages/apache_beam/io/filesystemio.py", line 
215, in close
       self._uploader.finish()
     File "/usr/local/lib/python3.9/site-packages/apache_beam/io/gcp/gcsio.py", 
line 829, in finish
       self._upload_thread.last_error.message)  # pylint: 
disable=raising-bad-type
   AttributeError: 'HttpForbiddenError' object has no attribute 'message' 
[while running 'Write/Write/WriteImpl/WriteBundles-ptransform-58']
   ``` 
   
   Looks like not all possible errors have the message attribute, and the code 
needs to account for it.
   
   Relevant PR: https://github.com/apache/beam/pull/24449 
   
   
   
   ### Issue Priority
   
   Priority: 2 (default / most bugs should be filed as P2)
   
   ### Issue Components
   
   - [X] Component: Python SDK
   - [ ] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [X] Component: IO connector
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
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