deno: Uncaught websocket error - bad resource ID

error: Uncaught (in promise) BadResource: Bad resource ID
    at async deno:ext/websocket/01_websocket.js:465:11

Running on latest deno, version 1.20.5 so it’s coming from this line:

https://github.com/denoland/deno/blob/d2c09408380191721ba7dfd971f802f5639eb1f7/ext/websocket/01_websocket.js#L465

I’m assuming maybe I’m trying to send a message to a websocket that’s just closed?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (23 by maintainers)

Most upvoted comments

tomorrow a new version will be out, so hopefully that will fix this issue

yes, next release (thursday) will hopefully have a fix. will open PR in the next hour