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

Error: stream.push() after EOF #17

Closed
karli2000 opened this issue Jun 14, 2013 · 5 comments
Closed

Error: stream.push() after EOF #17

karli2000 opened this issue Jun 14, 2013 · 5 comments

Comments

@karli2000
Copy link

Hi,

don't know if this is http-get only related or an issue with node 0.10.10:
i get from time to time when i fetch a lot of URLs this error:

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: stream.push() after EOF
    at readableAddChunk (_stream_readable.js:146:15)
    at IncomingMessage.Readable.push (_stream_readable.js:127:10)
    at HTTPParser.parserOnBody [as onBody] (http.js:143:22)
    at Socket.socketOnData [as ondata] (http.js:1556:20)
    at TCP.onread (net.js:510:27)

any ideas how to fix this?
Thank you!

@SaltwaterC
Copy link
Owner

Hi,

I didn't encounter this issue and I do download a lot of stuff with it. However, I'm still on node.js 0.8. Have various migration issues with 0.10 due to Stream v2. I think you found a node.js bug (as claimed by #5439 which you already know about). I see that the error is into the stream library which was reimplemented in 0.10. Even the docs claim that Stream v2 is unstable. I can say that I've seen this with HTTP v2 in node.js v0.6 - quite a minefield in edge cases.

For a proper bug fix, it needs to be reproduced in a reliable way. By its description, it looks like some sort of race condition. I'll look into it, but no ETA as these issues are non-trivial.

Regards.

@karli2000
Copy link
Author

Hi,

thank you for the fast answer & thank your for the effort!
Yes, it looks like some sort of race condition, i am using your great http-get for crawling up to 50 pages per second and then sometimes the error comes.
Looks like i have to live with it until there is a nodejs update.

Thank you,
Max

@SaltwaterC
Copy link
Owner

I was surprised to find out that node.js v0.8 still has some maintenance going on. It is on v0.8.25. You could give it a spin if you don't depend on v0.10.

@SaltwaterC
Copy link
Owner

Released http-request. Keeping this open for the time being, but it would be helpful to know if the issue is still there.

Thanks,
Ștefan

@SaltwaterC
Copy link
Owner

Since there aren't complains with the new lib, closing this one.

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