ruby - Faye chat application failing on web server (bluehost) -
this more of network question , believe. not sure issue is. have chat application uses faye , runs fine on system(rails app) localhost:3000 having faye mounted on it.i deployed rails app onto bluehost server , when try use faye client on browser ,its giving me error:
websocket connection 'ws://chat.xyz.com/faye' failed: error during websocket handshake: unexpected response code: 500
the below requests\handshakes keep on repeating.
get ...chat.xyz.com/faye?message=%5b%7b%22channel%22%3a%22%2fmet…ing%22%5d%2c%22id%22%3a%221%22%2c%22ext%22%3a%7b%7d%7d%5d&jsonp=jsonp3 ...chat.xyz.com/faye?message=%5b%7b%22channel%22%3a%22%2fmet…ing%22%5d%2c%22id%22%3a%221%22%2c%22ext%22%3a%7b%7d%7d%5d&jsonp=jsonp4
get ...chat.xyz.com/faye?message=%5b%7b%22channel%22%3a%22%2fmet…ing%22%5d%2c%22id%22%3a%221%22%2c%22ext%22%3a%7b%7d%7d%5d&jsonp=jsonp5
get ...chat.xyz.com/faye?message=%5b%7b%22channel%22%3a%22%2fmet…ing%22%5d%2c%22id%22%3a%221%22%2c%22ext%22%3a%7b%7d%7d%5d&jsonp=jsonp6
get ...chat.xyz.com/faye?message=%5b%7b%22channel%22%3a%22%2fmet…ing%22%5d%2c%22id%22%3a%221%22%2c%22ext%22%3a%7b%7d%7d%5d&jsonp=jsonp7
get ...chat.xyz.com/faye?message=%5b%7b%22channel%22%3a%22%2fmet…ing%22%5d%2c%22id%22%3a%221%22%2c%22ext%22%3a%7b%7d%7d%5d&jsonp=jsonp8
get ...chat.xyz.com/faye?message=%5b%7b%22channel%22%3a%22%2fmet…ing%22%5d%2c%22id%22%3a%221%22%2c%22ext%22%3a%7b%7d%7d%5d&jsonp=jsonp9
get ...chat.xyz.com/faye?message=%5b%7b%22channel%22%3a%22%2fmet…ng%22%5d%2c%22id%22%3a%221%22%2c%22ext%22%3a%7b%7d%7d%5d&jsonp=jsonp10
and failed handshakes\requests keep on getting repeated. seeing same on server logs also(except 500 message obviously). logs dont give error apart these repeats
is because of proxy\firewall issue. came across article : http://www.infoq.com/articles/web-sockets-proxy-servers
i not sure whether related blocking of requests proxy servers.
tried switching secure protcol. https. didn't help. use simple client this:
var client = new faye.client('http://chat.xyz.com/faye');
any great.
Comments
Post a Comment