aisstream / issues

7 stars 3 forks source link

Certificate verification failed. [ certificate has expired ] #72

Closed nkkrishnakfk closed 4 months ago

nkkrishnakfk commented 5 months ago

Traceback (most recent call last): File "/home/airflow/.local/lib/python3.7/site-packages/airflow/operators/python.py", line 171, in execute return_value = self.execute_callable() File "/home/airflow/.local/lib/python3.7/site-packages/airflow/operators/python.py", line 189, in execute_callable return self.python_callable(*self.op_args, **self.op_kwargs) File "/opt/airflow/dags/repo/dags/external/ais-stream/ais_stream_listen.py", line 110, in connect_ais_stream asyncio.run(_connect_ais_stream()) File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/usr/local/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete return future.result() File "/opt/airflow/dags/repo/dags/external/ais-stream/ais_stream_listen.py", line 39, in _connect_ais_stream async with websockets.connect("wss://stream.aisstream.io/v0/stream") as websocket: File "/home/airflow/.local/lib/python3.7/site-packages/websockets/legacy/client.py", line 637, in aenter return await self File "/home/airflow/.local/lib/python3.7/site-packages/websockets/legacy/client.py", line 655, in await_impl_timeout return await self.await_impl() File "/home/airflow/.local/lib/python3.7/site-packages/websockets/legacy/client.py", line 659, in await_impl _transport, _protocol = await self._create_connection() File "/usr/local/lib/python3.7/asyncio/base_events.py", line 989, in create_connection ssl_handshake_timeout=ssl_handshake_timeout) File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1017, in _create_connection_transport await waiter File "/usr/local/lib/python3.7/asyncio/sslproto.py", line 530, in data_received ssldata, appdata = self._sslpipe.feed_ssldata(data) File "/usr/local/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata self._sslobj.do_handshake() File "/usr/local/lib/python3.7/ssl.py", line 774, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1091)

cuasproject commented 5 months ago

Similar here async with websockets.connect( File "/opt/asl-env/lib/python3.11/site-packages/websockets/legacy/client.py", line 629, in aenter return await self ^^^^^^^^^^ File "/opt/asl-env/lib/python3.11/site-packages/websockets/legacy/client.py", line 647, in await_impl_timeout return await self.await_impl() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/asl-env/lib/python3.11/site-packages/websockets/legacy/client.py", line 651, in await_impl _transport, _protocol = await self._create_connection() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1113, in create_connection transport, protocol = await self._create_connection_transport( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1146, in _create_connection_transport await waiter File "/usr/local/lib/python3.11/asyncio/sslproto.py", line 578, in _on_handshake_complete raise handshake_exc File "/usr/local/lib/python3.11/asyncio/sslproto.py", line 560, in _do_handshake self._sslobj.do_handshake() File "/usr/local/lib/python3.11/ssl.py", line 979, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1006)

aisstream commented 5 months ago

Apologies, we thought we automated reloading the renewed cert in the load balancer.