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
STOMP Connection Error #200
Comments
What version are you using? |
I was using M5 then tried M6. It is same error. |
Please try with snapshots? |
Same error with 2.0.0.BUILD-SNAPSHOT. |
I may have found the issue. Will provide detail shortly. |
As shown below, the request header for Sec-WebSocket-Protocol is "v10.stomp, v11.stomp". When establishing the handshake, my Spring Websocket only return "V10.stomp". What happened was org.springframework.web.reactive.socket.server.support.HandshakeWebSocketService is comparing 2 different strings when trying to if the protocol is supported. Fix is in WebsocketRoutingFilter.
The value in the header just needed to be broken down. |
Thanks, @sincang for the detailed investigation. Made for an easy fix and test. |
Thanks also for the free software. |
Lol I wasted about 5 hours on this today. Thanks for having this here! |
When connecting directly to a Spring Boot WebSocket service, I am not getting an error. When thought the gateway, I am not able to connect. When I check the headers during handshake, gateway is not specifying the sub protocols. Please see the images for reference.
Directly to the websocket service
Through gateway
The text was updated successfully, but these errors were encountered: