You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is unhandled error comes from ioresdis package
[ioredis] Unhandled error event: Error: read EFAULT
at TCP.onStreamRead (internal/stream_base_commons.js:209:20)
at TCP.callbackTrampoline (internal/async_hooks.js:126:14)
It happens regularly in some specific edge cases, in our production environment. We try to fix the source of the issue, but the package should handle this error somehow to pretend to end up unhandled.
Currently, a stream (ex `net.Socket`) is returned via a Promise, and error
handlers are attached to the stream in the Promise callback.
However, if the errors are thrown immediately (ex with `process.nextTick()`),
the error handlers will not have the chance to attach to the stream, thus
unhandled error events will be thrown.
This PR makes all connectors resolve a factory instead of the created stream,
so the event handlers can be attached in the same tick.
Closes#1236Closes#1209Closes#1289
There is unhandled error comes from ioresdis package
It happens regularly in some specific edge cases, in our production environment. We try to fix the source of the issue, but the package should handle this error somehow to pretend to end up unhandled.
It looks like the PR #1236 should solve it.
The text was updated successfully, but these errors were encountered: