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

TypeError: Cannot read property '_buffer' of undefined #15

Closed
ralphholzmann opened this issue Feb 22, 2018 · 4 comments
Closed

TypeError: Cannot read property '_buffer' of undefined #15

ralphholzmann opened this issue Feb 22, 2018 · 4 comments
Labels

Comments

@ralphholzmann
Copy link

I've dropped this module into my app as a way to retry streaming file uploads if they should fail or be throttled. It works really well, but every so often the app crashes with this error:

TypeError: Cannot read property '_buffer' of undefined
    at Duplex.<anonymous> (streaming-cache/index.js:191:59)

Somehow, it's getting into a state where the cache has a hit, but the associated emitters dictionary does not, causing this error.

I'm going to investigate further and see if I can figure out how this is happening. Documenting it here for now.

@LaurentZuijdwijk
Copy link
Owner

Thank you @ralphholzmann. Please let me know if I can assist you with this.

@jotto
Copy link
Contributor

jotto commented Jul 13, 2018

I've been working through these bugs with this branch here: https://github.com/jotto/streaming-cache/commits/concurrent-requests-stall (the branch name is a reference to the first commit, but not the recent commits)

I created another issue here: #16, but it may be the same bug.

I'm guessing it's due to stream being aborted by client.

@LaurentZuijdwijk
Copy link
Owner

You guys happy for me to close this issue?

@jotto
Copy link
Contributor

jotto commented Jul 21, 2018

👍

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

No branches or pull requests

3 participants