2016-09-30 3 views
2

私が使用しています私はクロームで正常に動作するサンプルコードを持っている1.4.8とFirefox 48 socket.ioでsocket.io(XHRポーリング・エラー)との接続を確立できません私はFirefoxで実行し、私はここError: xhr poll error.を得たクライアントからのログです:は、Firefox

socket.io-client:url "parse https://127.0.0.1:3000" +0ms 
socket.io-client "new io instance for https://127.0.0.1:3000" +3ms 
socket.io-client:manager readyState closed +3ms 
socket.io-client:manager "opening https://127.0.0.1:3000" +1ms 
engine.io-client:socket creating transport "polling" +1ms 
engine.io-client:polling polling +1ms 
engine.io-client:polling-xhr xhr poll +2ms 
engine.io-client:polling-xhr "xhr open GET: https://127.0.0.1:3000/socket.io/?EIO=3&transport=polling&t=LTvQYL3" +1ms 
engine.io-client:polling-xhr xhr data null +1ms 
engine.io-client:socket setting transport polling +2ms 
socket.io-client:manager connect attempt will timeout after 8000 +1ms 
socket.io-client:manager readyState opening +3ms 
engine.io-client:socket socket error {"type":"TransportError","description":0} +74ms 
socket.io-client:manager connect_error +1ms 
socket.io-client:manager cleanup +0ms 

私はこのエラーをどのように修正することができますか?ありがとう。

答えて

0

サイトでは自己署名証明書がFirefoxによって信頼されていなかったためです。 socket urlに移動すると、信頼できないサイトを例外に追加するダイアログが表示されます。

+0

これは質問に対する答えを提供しません。十分な[評判](https://stackoverflow.com/help/whats-reputation)を取得すると、投稿に[comment](https://stackoverflow.com/help/privileges/comment)することができます。代わりに、[質問者から明確にする必要のない回答を提供する](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-c​​an -i-do-代わりに) – Bruce