-
Notifications
You must be signed in to change notification settings - Fork 181
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
error while running. #199
Comments
How often do you see this? 1000 OK normal closure typically implies that P.S. closed the connection, and this is an expected closure. If you saw this only once I wouldn't worry. If you see it very often could you provide your env configuration (omit credentials) and the logs leading up to this error? |
Hello! Sorry for the late reply. This happens everytime I run the run.py file. Here is my currently env with redacts creds BATTLE_BOT=safest USER_TO_CHALLENGE=SomeOtherPerson This is what I see after I run: python3 run.py Traceback (most recent call last): |
I'm also running this through a VPS, not sure if this would cause issues. |
The VPS smells like the culprit here. I haven't had any issues running so I'm not sure what else to look at. I'd check if you can connect to the P.S. websocket by other means (browser, directly via the websocket by some other means). |
Closing this. Feel free to re-open if you have some more information about what might be going on here. |
[ERROR] Traceback (most recent call last):
File "/root/showdown/run.py", line 103, in
asyncio.run(showdown())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/root/showdown/run.py", line 87, in showdown
winner = await pokemon_battle(ps_websocket_client, ShowdownConfig.pokemon_mode)
File "/root/showdown/showdown/run_battle.py", line 181, in pokemon_battle
battle = await start_battle(ps_websocket_client, pokemon_battle_type)
File "/root/showdown/showdown/run_battle.py", line 170, in start_battle
battle = await start_random_battle(ps_websocket_client, pokemon_battle_type)
File "/root/showdown/showdown/run_battle.py", line 119, in start_random_battle
battle, opponent_id, user_json = await initialize_battle_with_tag(ps_websocket_client)
File "/root/showdown/showdown/run_battle.py", line 79, in initialize_battle_with_tag
battle_tag, opponent_name = await get_battle_tag_and_opponent(ps_websocket_client)
File "/root/showdown/showdown/run_battle.py", line 66, in get_battle_tag_and_opponent
msg = await ps_websocket_client.receive_message()
File "/root/showdown/showdown/websocket_client.py", line 45, in receive_message
message = await self.websocket.recv()
File "/usr/local/lib/python3.10/dist-packages/websockets/legacy/protocol.py", line 553, in recv
await self.ensure_open()
File "/usr/local/lib/python3.10/dist-packages/websockets/legacy/protocol.py", line 930, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: received 1000 (OK) Normal closure; then sent 1000 (OK) Normal closure
Traceback (most recent call last):
File "/root/showdown/run.py", line 103, in
asyncio.run(showdown())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/root/showdown/run.py", line 87, in showdown
winner = await pokemon_battle(ps_websocket_client, ShowdownConfig.pokemon_mode)
File "/root/showdown/showdown/run_battle.py", line 181, in pokemon_battle
battle = await start_battle(ps_websocket_client, pokemon_battle_type)
File "/root/showdown/showdown/run_battle.py", line 170, in start_battle
battle = await start_random_battle(ps_websocket_client, pokemon_battle_type)
File "/root/showdown/showdown/run_battle.py", line 119, in start_random_battle
battle, opponent_id, user_json = await initialize_battle_with_tag(ps_websocket_client)
File "/root/showdown/showdown/run_battle.py", line 79, in initialize_battle_with_tag
battle_tag, opponent_name = await get_battle_tag_and_opponent(ps_websocket_client)
File "/root/showdown/showdown/run_battle.py", line 66, in get_battle_tag_and_opponent
msg = await ps_websocket_client.receive_message()
File "/root/showdown/showdown/websocket_client.py", line 45, in receive_message
message = await self.websocket.recv()
File "/usr/local/lib/python3.10/dist-packages/websockets/legacy/protocol.py", line 553, in recv
await self.ensure_open()
File "/usr/local/lib/python3.10/dist-packages/websockets/legacy/protocol.py", line 930, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: received 1000 (OK) Normal closure; then sent 1000 (OK) Normal closure
The text was updated successfully, but these errors were encountered: