zyro23 / grails-spring-websocket

93 stars 28 forks source link

init socket SyntaxError #33

Closed fit-booking closed 8 years ago

fit-booking commented 8 years ago

Opening Web Socket... VM20238:1 Uncaught SyntaxError: Unexpected token < xo.onfinish @ sockjs.js?compile=false:1946 EventEmitter.emit @ sockjs.js?compile=false:148 that.xhr.onreadystatechange @ sockjs.js?compile=false:801

branch 1.3.x

after I add plugin to my grails app and add code from the readme file . I got those error list here after I run-app

I need some help with it, I didn't change any code from the demo.

socket = new SockJS("${createLink( uri: '/stomp')}");

the problem may be whthin this line

zyro23 commented 8 years ago

could the cause be that your request to /stomp hits a 301 redirect (for example because it is somehow secured or not allowed redirecting to a login form or similar)?

zyro23 commented 8 years ago

have you made progress? only other issue i could imagine would be an assets encoding problem because sock.js contains unicode characters.

fit-booking commented 8 years ago

thank you very much , I got it done.