EdgeGPT icon indicating copy to clipboard operation
EdgeGPT copied to clipboard

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed:

Open AlanFeiyang opened this issue 1 year ago • 2 comments

Bot: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/EdgeGPT.py", line 294, in asyncio.run(main()) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/EdgeGPT.py", line 274, in main (await bot.ask(prompt=prompt))["item"]["messages"][1]["adaptiveCards"][0][ File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/EdgeGPT.py", line 210, in ask return await self.chat_hub.ask(prompt=prompt) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/EdgeGPT.py", line 170, in ask self.wss = await websockets.connect("wss://sydney.bing.com/sydney/ChatHub") File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/websockets/legacy/client.py", line 659, in await_impl_timeout return await asyncio.wait_for(self.await_impl(), self.open_timeout) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/tasks.py", line 478, in wait_for return fut.result() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/websockets/legacy/client.py", line 663, in await_impl _transport, _protocol = await self._create_connection() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 1081, in create_connection transport, protocol = await self._create_connection_transport( File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 1111, in _create_connection_transport await waiter File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/sslproto.py", line 528, in data_received ssldata, appdata = self._sslpipe.feed_ssldata(data) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/sslproto.py", line 188, in feed_ssldata self._sslobj.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ssl.py", line 944, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)

AlanFeiyang avatar Feb 10 '23 09:02 AlanFeiyang