Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid SockJS path '/userToken/info' - required to have 3 path segments

I have created a new Springboot websocket app and booting it results in the following message being written to the console every two seconds.

Invalid SockJS path '/userToken/info' - required to have 3 path segments
Invalid SockJS path '/userToken/info' - required to have 3 path segments
Invalid SockJS path '/userToken/info' - required to have 3 path segments

I do not have any security dependencies in my POM, yet it appears to be a security issue? Has anyone seen this?

like image 865
stanlick Avatar asked Feb 18 '19 16:02

stanlick


1 Answers

This totally unclear message happens when you are connecting to the STOMP endpoint using a simple WebSocket client (without subscriptions and etc.).

Use a STOMP client, the most popular is Spring

like image 132
belbix Avatar answered Oct 18 '22 14:10

belbix