Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

ndb crashes when script uses enquirer to read stdin #308

Open
jakub-g opened this issue Mar 15, 2020 · 0 comments
Open

ndb crashes when script uses enquirer to read stdin #308

jakub-g opened this issue Mar 15, 2020 · 0 comments

Comments

@jakub-g
Copy link

jakub-g commented Mar 15, 2020

Steps to reproduce

Tell us about your environment:

  • ndb version: v1.1.5
  • Platform / OS version: Win 10
  • Node.js version: v12.6.0

What steps will reproduce the problem?

git clone https://github.com/jakub-g/ndb-enquirer-repro && npm install && ndb npm start

What is the expected result?

The script asks for user input and finishes correctly

What happens instead?

The script crashes when asking for user input.
Meanwhile, when running via node --inspect-brk, it works fine.

Error message:

Uncaught Error: EBADF: bad file descriptor, read
Emitted 'error' event at:
    at internal/fs/streams.js:173
    at FSReqCallback.wrapper [as oncomplete] (fs.js:477)

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant