Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notifiers and "ESPIPE: invalid seek, read" errors #48

Closed
fivdi opened this issue Mar 17, 2018 · 1 comment
Closed

Notifiers and "ESPIPE: invalid seek, read" errors #48

fivdi opened this issue Mar 17, 2018 · 1 comment

Comments

@fivdi
Copy link
Owner

fivdi commented Mar 17, 2018

Attempting to use Notifiers with Node v8.10.0 will result in the following error:

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: ESPIPE: invalid seek, read

With Node v8.9.4 Notifiers work correctly and there are no errors.

Under the covers a Notifier is a named pipe created by the pigpio C library by calling mkfifo. On the JavaScript side a read stream is used to read notifications from the named pipe.

This appears to be related to nodejs/node#19240

@fivdi
Copy link
Owner Author

fivdi commented Jun 17, 2018

This issue has been fixed in Node.js. Tested with Node.js v8.11.3 and Notifiers works as expected.

@fivdi fivdi closed this as completed Jun 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant