Caused by: Bad CONNECT #579
-
Hi! I'm using your library in an android app. Since I need to connect using a token, I use KtorWebSocketClient, and then I create a session using the .stomp() method. The connectToWebSocket() method works well, the connection really happens, it returns 101, but as soon as I try to switch to stomp, an error occurs in the sendCellToWebSocket() method Caused by: org.hildan.krossbow.stomp.StompErrorFrameReceived: Bad CONNECT. Do you know what the problem might be? implementation("org.hildan.krossbow:krossbow-websocket-ktor:7.1.0") I am attaching screenshots from the client and logs from the server: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 17 replies
-
It looks like you're passing By default, it will be the same as the one from the web socket connection. Did you try not to override it? |
Beta Was this translation helpful? Give feedback.
The response from the person from the backend is exactly what I told you in my first message. It was about sending
/topic/chunk.changes
as ahost
in thestomp()
call. Now you have changed it, and you're sendingaroundgame.ru
. Yet you still get a similar error, so the host is still wrong.From the screenshot of the Virtual Hosts list, it looks like the only supported virtual host is
/
.Could you please try setting
host = "/"
in thestomp()
call?