Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 (Bad Request) #842

Closed
catamphetamine opened this issue May 21, 2015 · 8 comments
Closed

400 (Bad Request) #842

catamphetamine opened this issue May 21, 2015 · 8 comments

Comments

@catamphetamine
Copy link

Request:
GET http://localhost:3000/socket.io/?EIO=3&transport=polling&t=1432217406964-4

Response

{code: null}

Request console:

GET http://localhost:3000/socket.io/?EIO=3&transport=polling&t=1432217402391-3 400 (Bad Request)Request.create @ polling-xhr.js?533a:232Request @ polling-xhr.js?533a:155XHR.request @ polling-xhr.js?533a:86XHR.doPoll @ polling-xhr.js?533a:116Polling.poll @ polling.js?1450:118Polling.doOpen @ polling.js?1450:62Transport.open @ transport.js?e5ed:82Socket.open @ socket.js?5e31:220Socket @ socket.js?5e31:102Socket @ socket.js?5e31:37Manager.open.Manager.connect @ manager.js?0a19:205(anonymous function) @ manager.js?0a19:470
browser.js?1f0a:108 engine.io-client:socket socket error {"type":"TransportError","description":400} +14ms
debug.js?e9ea:35 socket.io-client:manager connect_error +13ms
debug.js?e9ea:35 socket.io-client:manager reconnect attempt error +0ms
debug.js?e9ea:35 socket.io-client:manager will wait 4549ms before reconnect attempt +1ms
browser.js?1f0a:108 engine.io-client:socket socket close with reason: "transport error" +1ms
browser.js?1f0a:108 engine.io-client:polling transport not open - deferring close +1ms
debug.js?e9ea:35 socket.io-client:manager attempting reconnect +4s
debug.js?e9ea:35 socket.io-client:manager readyState closed +0ms
debug.js?e9ea:35 socket.io-client:manager opening ws://localhost:3000/api +1ms
browser.js?1f0a:108 engine.io-client:socket creating transport "polling" +5s
browser.js?1f0a:108 engine.io-client:polling polling +1ms
browser.js?1f0a:108 engine.io-client:polling-xhr xhr poll +1ms
browser.js?1f0a:108 engine.io-client:polling-xhr xhr open GET: http://localhost:3000/socket.io/?EIO=3&transport=polling&t=1432217406964-4 +1ms
browser.js?1f0a:108 engine.io-client:polling-xhr xhr data null +1ms
browser.js?1f0a:108 engine.io-client:socket setting transport polling +2ms
debug.js?e9ea:35 socket.io-client:manager connect attempt will timeout after 20000 +8ms������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

Server console:

 engine intercepting request for path "/socket.io/" +5s
 engine handling "GET" http request "/socket.io/?EIO=3&transport=polling&t=1432217572991-36" +2ms�
     password: 'password',
        database����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
@catamphetamine
Copy link
Author

The error was in this line of code, I just removed it

websocket.set("origins", "*")���������������������������������

@rajkumarkale
Copy link

socket-client:4 POST https://myjobs-node-server-dev.herokuapp.com/socket.io/?EIO=3&transport=polling&t=LzSgWKx&sid=xZXjp-ume5Ty91ztAAHb 400 (Bad Request)

i am getting this in AngularJs App

@ashishbhangde
Copy link

I am facing this two errors:-

First:-
polling-xhr.js:261 POST http://localhost:3001/socket.io/?EIO=3&transport=polling&t=NFXWAR3&sid=9OPaAXMDJAjr1IbbAAAg 400 (Bad Request)

Second:-
websocket.js:111 WebSocket connection to 'ws://localhost:3001/socket.io/?EIO=3&transport=websocket&sid=NlUSImfHeRNiKYf2AAAy' failed: Error during WebSocket handshake: Unexpected response code: 400

@naveen8801
Copy link

socket-client:4 POST https://myjobs-node-server-dev.herokuapp.com/socket.io/?EIO=3&transport=polling&t=LzSgWKx&sid=xZXjp-ume5Ty91ztAAHb 400 (Bad Request)

i am getting this in AngularJs App

Hi @rajkumarkale , have you resolved it , am also facing the same :(

@marilynnHossry
Copy link

Hello @ashishbhangde , did you find a solution for these 2 errors ? I am getting the same but with EIO=4
Thank you in advance

@darrachequesne
Copy link
Member

@wahengchang
Copy link

anyone find the solution ?

@darrachequesne
Copy link
Member

@wahengchang please open a new issue with all necessary details. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants