cameroncros / OctoPrint-DiscordRemote

Discord plugin for OctoPrint
MIT License
68 stars 32 forks source link

Failed with: Event loop stopped before Future completed #250

Closed hcooper closed 1 year ago

hcooper commented 1 year ago

Repro:

  1. Install latest package via octoprint plugin manager (v4.5)
  2. Go to plugin setting and change anything (e.g. add white space to a message).
  3. Press save, and see this error message in the logs.

Note: the test message does actually arrive.

2023-05-10 17:25:37,229 - octoprint.plugins.discordremote - INFO - Settings have saved. Send a test message...
2023-05-10 17:25:37,350 - octoprint.plugins.discordremote - INFO - Received event: startup
2023-05-10 17:25:37,480 - octoprint.plugins.discordremote - INFO - Received event: test
2023-05-10 17:25:40,542 - octoprint.plugins.discordremote - INFO - Sending msgs
2023-05-10 17:25:41,089 - octoprint.plugins.discordremote - INFO - Failed with: Event loop stopped before Future completed.
[ a few seconds later ]
2023-05-10 17:25:47,645 - discord.gateway - WARNING - Shard ID None heartbeat blocked for more than 10 seconds.
2023-05-10 17:25:54,111 - discord.gateway - WARNING - Shard ID None heartbeat blocked for more than 10 seconds.
2023-05-10 17:25:57,646 - discord.gateway - WARNING - Shard ID None heartbeat blocked for more than 20 seconds.
2023-05-10 17:26:04,113 - discord.gateway - WARNING - Shard ID None heartbeat blocked for more than 20 seconds.
2023-05-10 17:26:07,647 - discord.gateway - WARNING - Shard ID None heartbeat blocked for more than 30 seconds.
2023-05-10 17:26:14,114 - discord.gateway - WARNING - Shard ID None heartbeat blocked for more than 30 seconds.
2023-05-10 17:26:17,648 - discord.gateway - WARNING - Shard ID None heartbeat blocked for more than 40 seconds.
cameroncros commented 1 year ago

Yeah, that is a known problem. The entire v4.x series are completely broken.

I am nearly ready to release my rewritten version, but there is still some work left.