Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Facing this over server like railway & heroku #616

Open
TechyCSR opened this issue Jul 17, 2023 · 0 comments
Open

Facing this over server like railway & heroku #616

TechyCSR opened this issue Jul 17, 2023 · 0 comments

Comments

@TechyCSR
Copy link

Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/client.py", line 662, in await_impl
await protocol.handshake(
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/client.py", line 329, in handshake
raise InvalidStatusCode(status_code, response_headers)
websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 200
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/client.py", line 655, in await_impl_timeout
return await self.await_impl()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/client.py", line 676, in await_impl
await protocol.wait_closed()
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/PyroEdgeGptBot/PyroEdgeGptBot.py", line 544, in chat_handle
async for final, response, reply_markup in bingAIStream(update.chat.id, update.text):
File "/PyroEdgeGptBot/PyroEdgeGptBot.py", line 813, in bingAIStream
async for final, rsp in EDGES[user_id]["bot"].ask_stream(prompt=messageText, conversation_style=EDGES[user_id]["style"]):
File "/usr/local/lib/python3.11/site-packages/EdgeGPT/EdgeGPT.py", line 185, in ask_stream
async for response in self.chat_hub.ask_stream(
File "/usr/local/lib/python3.11/site-packages/EdgeGPT/chathub.py", line 102, in ask_stream
async with connect(
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/client.py", line 637, in aenter
return await self
^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/client.py", line 654, in await_impl_timeout
async with asyncio_timeout(self.open_timeout):
File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, in aexit
raise TimeoutError from exc_val
TimeoutError
2023-07-17 18:08:47 - pyrogram.dispatcher - ERROR -
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/client.py", line 662, in await_impl
await protocol.handshake(
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/client.py", line 329, in handshake
raise InvalidStatusCode(status_code, response_headers)
websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 200
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/client.py", line 655, in await_impl_timeout
return await self.await_impl()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/client.py", line 676, in await_impl
await protocol.wait_closed()
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker
await handler.callback(self.client, *args)
File "/PyroEdgeGptBot/PyroEdgeGptBot.py", line 558, in chat_handle
raise e
File "/PyroEdgeGptBot/PyroEdgeGptBot.py", line 544, in chat_handle
async for final, response, reply_markup in bingAIStream(update.chat.id, update.text):
File "/PyroEdgeGptBot/PyroEdgeGptBot.py", line 813, in bingAIStream
async for final, rsp in EDGES[user_id]["bot"].ask_stream(prompt=messageText, conversation_style=EDGES[user_id]["style"]):
File "/usr/local/lib/python3.11/site-packages/EdgeGPT/EdgeGPT.py", line 185, in ask_stream
async for response in self.chat_hub.ask_stream(
File "/usr/local/lib/python3.11/site-packages/EdgeGPT/chathub.py", line 102, in ask_stream
async with connect(
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/client.py", line 637, in aenter
return await self
^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/client.py", line 654, in await_impl_timeout
async with asyncio_timeout(self.open_timeout):
File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, in aexit
raise TimeoutError from exc_val
TimeoutError

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant