Skip to content
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

Invalid SockJS path #28103

Closed
AliaksandrAkavity opened this issue Feb 24, 2022 · 1 comment
Closed

Invalid SockJS path #28103

AliaksandrAkavity opened this issue Feb 24, 2022 · 1 comment
Assignees
Labels
for: stackoverflow A question that's better suited to stackoverflow.com

Comments

@AliaksandrAkavity
Copy link

Hello, in our project I found strange behaviour with this DefaultSockJsService.

We using spring boot 2.5.5 and this dependencies:

org.springframework.boot
spring-boot-starter-websocket


org.springframework.boot
spring-boot-starter-webflux


org.springframework.boot
spring-boot-starter-reactor-netty

We received next exception:
DefaultSockJsService : Invalid SockJS path '/online-security-bundling/process' - required to have 3 path segments

We see this strange behaviour only on prod env in google cloud while receiving requests from google pub/sub. Maybe you know why it's hepenning?

public class DefaultSockJsService extends TransportHandlingSockJsService implements ServletContextAware {

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Feb 24, 2022
@rstoyanchev
Copy link
Contributor

Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use the issue tracker only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug.

As you investigate further, the error means the URL path neither has the 3 required path segments (serverId, sessionId, protocolId) required to handle the request by the protocol, and it is also none of the other expected, fixed URL paths such as the root path "/" when starting out, or "/info", or "/websocket".

You'll need to debug the sequence of URLs with understanding of what's expected to understand what happens. There is an overview in our documentation and the protocol itself is not hard to read for further detail.

@rstoyanchev rstoyanchev added for: stackoverflow A question that's better suited to stackoverflow.com and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Feb 25, 2022
@rstoyanchev rstoyanchev self-assigned this Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: stackoverflow A question that's better suited to stackoverflow.com
Projects
None yet
Development

No branches or pull requests

3 participants