Web socket returning error.

dneb15 days ago

Hello,

i am trying to get WebSocket endpoint for live updates.
able to get the session id and then tried to connect the web socket but it shows the below error.

{
"servlet":"org.glassfish.jersey.servlet.ServletContainer-125af3a6",
"message":"HTTP method POST is not supported by this URL",
"url":"/api/socket",
"status":"405"
}

what did i miss?

Anton Tananaev15 days ago

It seems like you're trying a POST /api/socket request, which is obviously incorrect.

dneb15 days ago

so which method is supported? i tried with GET and its the same response.

Anton Tananaev15 days ago

It should be a WebSocket connection. Why are you trying to do a GET or POST? This doesn't make sense to me.

dneb14 days ago

websocket.png

This is the response i am getting.

Anton Tananaev14 days ago

This likely means you have not included a session header.