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

Streams broken as of NodeJS 10.20.1 #216

Open
crh3675 opened this issue Jul 30, 2020 · 1 comment
Open

Streams broken as of NodeJS 10.20.1 #216

crh3675 opened this issue Jul 30, 2020 · 1 comment

Comments

@crh3675
Copy link

crh3675 commented Jul 30, 2020

Streams just hang using NodeJS 10x:

const readStream = new stream.PassThrough();
readStream.end('{"stations":[{"id":1,"name":"somewhere"]}');

readStream.once('readable', () => {
  oboe(readStream).node('stations.*', station => {
     // Never iterates
  })
  .done(final => {
    // Never is done
  })
  .fail(err => {
    // Never fails
  });
});

Cannot reproduce in NodeJS versions < 8. Even tried with NodeJS 10.x version:

const readable = Readable.from('{"stations":[{"id":1,"name":"somewhere"]}', {encoding: 'utf8'});
@crh3675 crh3675 changed the title Streams broken as of NodeJS 10.x Streams broken as of NodeJS 10.20.1 Jul 30, 2020
@SheldonWBM
Copy link

FYI: Using Oboe on node 20.x, no hanging issues.

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

2 participants