question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

stomp.startConnect() not pointing to right host

See original GitHub issue
   //configuration 
     stomp.configure({
  
       **host:'127.0.0.1:8080',
       debug:true,
       queue:{'init':true}
     });

AFter doing stomp.startConnect() , chrome console shows this error: zone.js:2744 GET http://localhost:4200/127.0.0.1:8080/info?t=1505100250266 404 (Not Found)

chrome_2017-09-11_00-29-52

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kum-deepakcommented, Sep 15, 2017

Are you sure you are using ng2-stompjs? Your code does not seem to be using ng2-stompjs.

Try using ‘http://127.0.0.1:8080’ instead of ‘127.0.0.1:8080’.

0reactions
kum-deepakcommented, Sep 16, 2017

Not a bug really. That is how HTTP resources are supposed to be addressed - URLs that are not absolute are considered relative and resolved relative to the URL of current page.

In case of Angular apps URL of current page (in development setup) is http://localhost:4200/

I hope the above is helpful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular2 with Stomp.js - Stack Overflow
I not found working with angular2.rc6/final example or lib. How can I reaplace Stomp.js something else? In my previously project with Angular 1....
Read more >
Messaging with .NET and ActiveMQ - Re.Mark - WordPress.com
Sending and receiving messages using ActiveMQ is enabled by NMS and Spring.Messaging.NMS. We've seen how to create a simple set up using .NET...
Read more >
[Solved]-How to add SockJS into Angular 2 project?-angular.js
In your project you're pointing to vendor/sockjs-client/lib/entry.js instead you ... private wsConf = { host:'test.com' } constructor(stomp: StompService) ...
Read more >
Group Policies Going Rogue - CyberArk
Server_ProcessRefresh()requests GPO objects from the domain controller, “give me my group policies so I can update them,” upon getting the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found