More info in CloseCode.SubprotocolNotAcceptable situations? #339
-
We've been seeing this in our error logs, but we're not sure what the source is. We have converted all the stuff we know of to Apollo 3 / graphql-ws. There could be some chance someone is using something with an older client, but it's hard to tell because our error logs only print this message:
Is there a way for us to try / catch somewhere on the server-side so we can add context in? We're using Apollo Express + ws. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Some of your clients are trying to connect without specifying a subprotocol, while the required subprotocol is I've added that log so that people transitioning from The log comes from here and can be disabled by running the server in production mode ( |
Beta Was this translation helpful? Give feedback.
Some of your clients are trying to connect without specifying a subprotocol, while the required subprotocol is
"graphql-transport-ws"
.I've added that log so that people transitioning from
subscriptions-transport-ws
are aware that this lib is not cross-compatible.Maybe I should console log exclusively if the deprecated subprotocol is detected?Starting from v5.6.4, server integrations warn only when detectingsubscriptions-transport-ws
clients.The log comes from here and can be disabled by running the server in production mode (
export NODE_ENV=production
).