-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Node server crashes with ERR_INTERNAL_ASSERTION error #249
Comments
It is hard to helps if there is no reproducible code or the problem is cloud platform specific. |
I understand. Hard to provide reproduction as it's only production environment and we are having lots of clients connected. In all of our testing this never happened. Looking at stack trace, this line of Node httpserver is failing Don't really have enough knowledge to make sense of what is all happening here. If you have any idea on how we could further investigate please let me know. Thanks |
Will it be the environment itself replaced the |
I doubt it, as the Node is running inside custom built docker container. And also everything is working ok 99% of the time, sockets are connected and messages are delivered. |
I am think if |
As I understand |
I've seen this error myself a few times. (Note that this is mostly a bug in Node.js core that we will work around here). |
So, the problem is not related to socket being destroyed, but to sockets calling |
Tnx, sure, I'll report back with findings. But it's hard for us to create a repro. Happens only when larger number of clients is connected. We couldn't detect any pattern, occurs on random requests. |
On our side looks like the issue is resolved. Thank you. |
Prerequisites
Fastify version
4.x
Plugin version
7.1.3
Node.js version
14.x
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
Azure AppServices for linux (Node running inside docker container)
Description
We are getting some intermittent container crashes and looking at the logs looks like source of the exception is
@fastify/websockets
(logs below). We are using @fastify in combination with TRPC subscriptions for real-time communication.I believe server should not completely crash and restart on such websocket errors. Any help or guidelines on we can resolve this problem. Not sure if this is the right place to raise the issue as the problem could be in the fastify plugin for TRPC? But from the error logs we can only pinpoint to
@fastify/websocket
.Thanks
Steps to Reproduce
We are unable to reproduce this issue in our development or staging environments, it is happening only in production.
Expected Behavior
The server should not crash with an ERR_INTERNAL_ASSERTION error.
The text was updated successfully, but these errors were encountered: