We recently added a simple Turbo Stream based feature to our app. We had to make changes to our Nginx config to allow for websockets, but the feature seems to work as expected.
However, now we get these errors often: [ERROR] WebSocket error occurred: Broken pipe
. Occasionally I will see [ERROR] Failed to upgrade to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: close, HTTP_UPGRADE: )
They seem to occur with every successful connection. They also seem to be low-level because exceptions are not caught by our exception tracker.
I’m guessing something is disconnecting abruptly rather than correctly closing the connection. Like I said the feature works, so it seems communication is happening between clients and the server. I suspect it could be an issue with my load balancer or Nginx config.
I am tempted to ignore this error, but has anyone else dealt with this problem?