davinkevin / AngularStompDK

Angular service to communicate to Stomp-Websocket
http://davinkevin.github.io/AngularStompDK/
Apache License 2.0
36 stars 12 forks source link

"ERROR message:Bad CONNECT #34

Closed shashankel closed 8 years ago

shashankel commented 8 years ago

I keep getting the below message "ERROR message:Bad CONNECT content-type:text/plain version:1.0,1.1,1.2 content-length:38 Virtual host 'undefined' access denied"

My provider configuration: ngstompProvider .url('http://172.21.133.222:15674/stomp') .credential('guest','guest') .class(SockJS);

Libraries used: Stomp JS: 1.7.1 Sock JS: 0.3.4

davinkevin commented 8 years ago

You use some old version of libraries (Stomp is in v2.3) and SockJS is now in 1.0.3.

Could you first try to connect with just StompJs and without AngularJS to see if the problem is link to AngularStompDK or Stomp himself...

shashankel commented 8 years ago

Adding .vhost('/') resolved the problem. Thanks

davinkevin commented 8 years ago

Ok, but I advice you to upgrade your lib version 👍

shashankel commented 8 years ago

Yes. Upgraded to latest

michaelkrog commented 7 years ago

I had the same issuse using the latest version against Rabbitmq. Adding .vhost('/') solves it.