engine.io-client icon indicating copy to clipboard operation
engine.io-client copied to clipboard

Uncaught Error: xhr poll error

Open Somebi opened this issue 7 years ago • 2 comments

Unhandled error, error event listener is applied on our side. This happens time to time, due to quick server shutdown and start tests. Seems like something with polling connection establishing.

     Uncaught Error: xhr poll error
      at XHR.Transport.onError (/home/beck/optibet/src/github.com/LiflandGaming/ws-service/node_modules/engine.io-client/lib/transport.js:64:13)
      at Request.<anonymous> (/home/beck/optibet/src/github.com/LiflandGaming/ws-service/node_modules/engine.io-client/lib/transports/polling-xhr.js:128:10)
      at Request.Emitter.emit (/home/beck/optibet/src/github.com/LiflandGaming/ws-service/node_modules/component-emitter/index.js:133:20)
      at Request.onError (/home/beck/optibet/src/github.com/LiflandGaming/ws-service/node_modules/engine.io-client/lib/transports/polling-xhr.js:310:8)
      at Timeout._onTimeout (/home/beck/optibet/src/github.com/LiflandGaming/ws-service/node_modules/engine.io-client/lib/transports/polling-xhr.js:257:18)
      at ontimeout (timers.js:488:11)
      at tryOnTimeout (timers.js:323:5)
      at Timer.listOnTimeout (timers.js:283:5)

Somebi avatar Aug 07 '17 08:08 Somebi

Seems like closing/disconnecting client gracefully before closing the server helped in my case, but this is still a bug, not sure why Error is counted as unhandled. Don't have time to figure that out.

But the issue is that client is not handling this properly.

Somebi avatar Aug 07 '17 08:08 Somebi

+1

adonespitogo avatar Aug 15 '18 04:08 adonespitogo