Errors in websocket worker tail
I just made my very first websocket worker and deployed it.
It works just fine, however when I tried to see the logs with tail I encountered some strange behavior: no logs show while the connection is active and when i disconnect all log entries show up with two identical errors stating:
Error: The Workers runtime canceled this request because it detected that your Worker's code had hung and would never generate a response. Refer to: https://developers.cloudflare.com/workers/observability/errors/ the linked page stated that I need the following block to prevent this:
however after adding it the same issue remains.
Output:
1 Reply
Code with some checks removed to fit in message: