ng-stomp icon indicating copy to clipboard operation
ng-stomp copied to clipboard

Uncaught SyntaxError while establishing the socket connection

Open ashrafsarhan opened this issue 7 years ago • 1 comments

Using "ng-stomp": "0.5.0" in my package.json file with the ng-stomp standalone via bower, I always get the following exception, Any solution?

Uncaught SyntaxError: JSON.parse
    at Object.function.JSON.parse.JSON.parse (ng-stomp.standalone.min.js:24)
    at c.XHRLocalObject.f.onfinish (ng-stomp.standalone.min.js:24)
    at c.XHRLocalObject.f.emit (ng-stomp.standalone.min.js:24)
    at XMLHttpRequest.g.xhr.onreadystatechange (ng-stomp.standalone.min.js:24)

ashrafsarhan avatar Feb 21 '18 16:02 ashrafsarhan

Wow, that one seems weird. Did you try to use the „non-standalone“ version too? Could be, that the last standalone build didn't work to great. You can also check the update-deps branch from #29 – it might resolve your issue.

beevelop avatar Feb 28 '18 07:02 beevelop