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

Websockets.exceptions.ConnectionClosedError #31

Open
KernelGM opened this issue May 30, 2022 · 3 comments
Open

Websockets.exceptions.ConnectionClosedError #31

KernelGM opened this issue May 30, 2022 · 3 comments

Comments

@KernelGM
Copy link

  • Webex Bot version: 0.3.1
  • Python version: 3.10.4
  • Operating System: Windows 10

Description

If I run the code with one fresh bot, all work fine. But after 2 days I try again and the error comes.

What I Did

[INFO]  [webex_bot.webex_bot.webex_bot.__init__]:49 Registering bot with Webex cloud

[INFO]  [restsession.webexteamssdk.restsession.user_agent]:167 User-Agent: webexteamssdk/0+unknown {"implementation": {"name": "CPython", 
"version": "3.10.4"}, "system": {"name": "Windows", "release": "10"}, "cpu": "AMD64"}

[INFO]  [webex_websocket_client.webex_bot.websockets.webex_websocket_client._connect_and_listen]:161 WebSocket Opened.

[INFO]  [_common.backoff._log_backoff]:105 Backing off _connect_and_listen(...) for 69.6s (websockets.exceptions.ConnectionClosedError: received 1011 (unexpected error); then sent 1011 (unexpected error))
@gconklin
Copy link
Contributor

This looks like it's happening in the websockets package. I'd say make sure websockets is up to date (v10.3) and that there isn't some connectivity issue to https://wdm-a.wbx2.com and https://api.ciscospark.com

@dredinger
Copy link

dredinger commented May 31, 2022

Getting the same error, I upgraded to websockets 10.3 from 10.2 (got a warning stating webex_bot dependency requires websockets==10.2, but this still took the upgrade), verified able to access both of those sites, and still getting the same error as above.

2022-05-31 08:06:55  [INFO]  [webex_bot.webex_bot.webex_bot.__init__]:46 Registering bot with Webex cloud
2022-05-31 08:06:55  [INFO]  [restsession.webexteamssdk.restsession.user_agent]:167 User-Agent: webexteamssdk/0+unknown {"implementation": {"name": "CPython", "version": "3.10.4"}, "system": {"name": "Windows", "release": "10"}, "cpu": "AMD64"}
2022-05-31 08:06:56  [INFO]  [webex_websocket_client.webex_bot.websockets.webex_websocket_client._connect_and_listen]:158 Opening websocket connection to wss://mercury-connection-partition0-a.wbx2.com/v1/apps/wx2/registrations/2b5a0a4c-449c-4027-9657-8fb131c3bd90/messages
2022-05-31 08:06:56  [INFO]  [webex_websocket_client.webex_bot.websockets.webex_websocket_client._connect_and_listen]:161 WebSocket Opened.
2022-05-31 08:06:57  [INFO]  [_common.backoff._log_backoff]:104 Backing off _connect_and_listen(...) for 0.0s (websockets.exceptions.ConnectionClosedError: received 1011 (unexpected error); then sent 1011 (unexpected error))
2022-05-31 08:06:57  [INFO]  [webex_websocket_client.webex_bot.websockets.webex_websocket_client._connect_and_listen]:158 Opening websocket connection to wss://mercury-connection-partition0-a.wbx2.com/v1/apps/wx2/registrations/2b5a0a4c-449c-4027-9657-8fb131c3bd90/messages
2022-05-31 08:06:57  [INFO]  [webex_websocket_client.webex_bot.websockets.webex_websocket_client._connect_and_listen]:161 WebSocket Opened.
2022-05-31 08:06:57  [INFO]  [_common.backoff._log_backoff]:104 Backing off _connect_and_listen(...) for 0.6s (websockets.exceptions.ConnectionClosedError: received 1011 (unexpected error); then sent 1011 (unexpected error))
2022-05-31 08:06:57  [INFO]  [webex_websocket_client.webex_bot.websockets.webex_websocket_client._connect_and_listen]:158 Opening websocket connection to wss://mercury-connection-partition0-a.wbx2.com/v1/apps/wx2/registrations/2b5a0a4c-449c-4027-9657-8fb131c3bd90/messages

@KernelGM
Copy link
Author

KernelGM commented Jun 1, 2022

Same error here. /:

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

3 participants