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
Context
We are trying to introduce the functionality of having communication with GCS via beam jobs. For that matter, we are using gcs.GcsIo(python) to get things done. Now we are facing some unexpected SSL error which we are not sure about.
Relevant links to the code
You can have a look at the implementation for this matter:
File "/workspace/core/jobs/io/gcs_io.py", line 95, in _read_file
file = gcs.open(gcs_url, mode=self.mode)
File "/usr/local/lib/python3.8/site-packages/apache_beam/io/gcp/gcsio.py", line 225, in open
downloader = GcsDownloader(
File "/usr/local/lib/python3.8/site-packages/apache_beam/io/gcp/gcsio.py", line 595, in __init__
project_number = self._get_project_number(self._bucket)
File "/usr/local/lib/python3.8/site-packages/apache_beam/io/gcp/gcsio.py", line 165, in get_project_number
bucket_metadata = self.get_bucket(bucket_name=bucket)
File "/usr/local/lib/python3.8/site-packages/apache_beam/io/gcp/gcsio.py", line 184, in get_bucket
return self.client.buckets.Get(request)
File "/usr/local/lib/python3.8/site-packages/apache_beam/io/gcp/internal/clients/storage/storage_v1_client.py", line 282, in Get
return self._RunMethod(
File "/usr/local/lib/python3.8/site-packages/apitools/base/py/base_api.py", line 728, in _RunMethod
http_response = http_wrapper.MakeRequest(
File "/usr/local/lib/python3.8/site-packages/apitools/base/py/http_wrapper.py", line 348, in MakeRequest
return _MakeRequestNoRetry(
File "/usr/local/lib/python3.8/site-packages/apitools/base/py/http_wrapper.py", line 397, in _MakeRequestNoRetry
info, content = http.request(
File "/usr/local/lib/python3.8/site-packages/oauth2client/transport.py", line 167, in new_request
resp, content = orig_request_method(uri, method, body,
File "/usr/local/lib/python3.8/site-packages/httplib2/__init__.py", line 1314, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/local/lib/python3.8/site-packages/httplib2/__init__.py", line 1064, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/local/lib/python3.8/site-packages/httplib2/__init__.py", line 987, in _conn_request
conn.connect()
File "/usr/local/lib/python3.8/http/client.py", line 1425, in connect
self.sock = self._context.wrap_socket(self.sock,
File "/usr/local/lib/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/local/lib/python3.8/ssl.py", line 1040, in _create
self.do_handshake()
File "/usr/local/lib/python3.8/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
RuntimeError: ssl.SSLError: [SSL] internal error (_ssl.c:1131) [while running 'Read files from the GCS/Read the file-ptransform-72']
Please let me know what more information I can provide.
Thanks in advance.
Issue Priority
Priority: 2
Issue Component
Component: io-py-gcp
The text was updated successfully, but these errors were encountered:
Python GcsIO is based on apitools which has been deprecated for a while. Migration to cloud api is planned (#19073). If just need to communicate with gcs cloud libraries are recommended.
Thanks, @Abacn, I really appreciate your quick response. Just wanted to confirm that we will be able to use the from google.cloud import storage to work our way, I mean the storage library would work fine?
Thanks
What happened?
Context
We are trying to introduce the functionality of having communication with GCS via beam jobs. For that matter, we are using
gcs.GcsIo
(python) to get things done. Now we are facing some unexpected SSL error which we are not sure about.Relevant links to the code
You can have a look at the implementation for this matter:
Stack trace
Please let me know what more information I can provide.
Thanks in advance.
Issue Priority
Priority: 2
Issue Component
Component: io-py-gcp
The text was updated successfully, but these errors were encountered: