Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Railway deployment issue #23

Open
TechyCSR opened this issue Jul 17, 2023 · 1 comment
Open

Railway deployment issue #23

TechyCSR opened this issue Jul 17, 2023 · 1 comment

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

@TechyCSR
Copy link
Author

Facing since a week
locally its working but on railway & heroku same error

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

No branches or pull requests

1 participant