-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fresh Web Server dies with "Bad resource ID" in Dev Mode #21379
Comments
I was able to reproduce the same bug in the most recent version of Deno (1.38.3) as well and was able to run it with the By the way, I am also using the fresh framework for this app. Importantly, I also now noticed that the request to open the This is the output when the problem happens while running with
|
Panic is fixed in 1.39. It should throw a catchable error. |
Now (in Deno 1.39.0) the error is indeed thrown as an exception within the JS code. However, I encountered the case where it is thrown inside the WebSocket event loop:
It might be due to my lack of understanding of either Deno or Async JS, but it seems to me that this is not catchable from user-level code and would instead need to be caught within the library code. |
Version: Deno 1.38.2
I am maintaining a relatively simple web app centered around a single WebSocket endpoint. Recently the server crashed due to an internal panic within the Deno Rust code. This happened during moderate load (~100 concurrent connections). Later I was able to reproduce this in a low load environment (3 clients) without any communication apart from ping messages and connects/disconnects. I do not remember encountering the same problem in previous versions of Deno and haven't materially altered the code base in between.
Not sure if this helps in debugging, but this is some debugging output I produced based on the socket state
This is the entire error output Deno produced:
The text was updated successfully, but these errors were encountered: