Open Guevin1 opened 2 months ago
Hi, I am getting the following error while trying to run the code your provided:
None
Traceback (most recent call last):
File "...\main.py", line 53, in <module>
asyncio.run(main())
File "...\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "...\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "...\main.py", line 29, in main
if character_new["modelID"] != character_id:
^^^^^^^^^^^^
NameError: name 'character_id' is not defined. Did you mean: 'character_new'?
By the way, how are you calling your main function? Will you mind providing the full code so that I can run and debug ?
Also, from the error you've provided, it seems like the websocket connection timeout / closing by the time you are calling await MyVts.request(send_hotkey_request)
: websockets.exceptions.ConnectionClosedError
. But not sure. 😓
code:
Error