mrniko / netty-socketio

Socket.IO server implemented on Java. Realtime java framework
Apache License 2.0
6.82k stars 1.65k forks source link

Bug - bad request #108

Closed cambeaney closed 10 years ago

cambeaney commented 10 years ago

Using the latest version of netty-socketio and socket.io. When I try connect it spams an error:

WARN com.corundumstudio.socketio.handler.AuthorizeHandler - Blocked wrong request! url: /socket.io/, ip: /127.0.0.1:59350

Any idea why this happens? I have looked through the code and I'm clueless as to why.

mrniko commented 10 years ago

Could you send me a requests log?

cambeaney commented 10 years ago

Where would I find this?

mrniko commented 10 years ago

in firebug plugin for example if you use firefox browser, or in chrome developer console

cambeaney commented 10 years ago

XMLHttpRequest cannot load [url]:[port]/socket.io/?EIO=2&transport=polling. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '[url2]' is therefore not allowed access.

vongosling commented 10 years ago

you use the socketio client 1.0 ,it's not compliant with the netty-socketio now~

mrniko commented 10 years ago

He is right. Please use 0.9.16 version of socketio client

cambeaney commented 10 years ago

Ahh okay. Thanks!

On Mon, Mar 17, 2014 at 10:51 AM, Nikita Koksharov <notifications@github.com

wrote:

Correct, please use 0.9.16 version of socketio client

Reply to this email directly or view it on GitHubhttps://github.com/mrniko/netty-socketio/issues/108#issuecomment-37803297 .