-
Notifications
You must be signed in to change notification settings - Fork 598
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
Bigtable error silently ignored #2724
Comments
This issue was moved to googleapis/nodejs-bigtable#8 |
I suspect the underlying bug lives in |
Woops, that's a good point. Well, we'll see what @callmehiphop thinks and maybe having two issues will make us fix it twice as fast :) |
@kolodny is correct, this is definitely a core issue. @stephenplusplus I think this might actually be a retry-request issue. It seems that after a requestStream.on('error', err => retryStream.emit('error', err)); Around https://github.com/stephenplusplus/retry-request/blob/master/index.js#L176 |
Ah, I see what you're saying. At the point you linked, we know the steam is good to go, so forwarding errors then is what we should do. |
I understand, my suggestion is if the |
I released a new @callmehiphop will that fix this issue, or is there more to do from common-grpc? |
I'm pretty sure that fix should resolve this issue! |
@kolodny please remove your local node_modules, reinstall, and let us know how it goes! |
Confirmed, the issue now appears fixed. Thanks! |
Steps to reproduce
I chased this bug down to https://github.com/GoogleCloudPlatform/google-cloud-node/blob/a64ad81517045196cf5a3f468ea15aad1e2c25da/packages/common-grpc/src/service.js#L376-L385
This "fake" response call causes
streamResponseHandled
inretry-request
to be set to true on the fake response, that has the consequence of never firing the error callback. https://github.com/stephenplusplus/retry-request/blob/4181eec8187c3603d4e4e68db1ee6ac27725afa3/index.js#L113-L133I tried reverting the code in #1444 to see if I could replicate the bug referenced at #1443 to see if I could find a different solution that would avoid this nasty regression, but I wasn't able to repro (I always got a response). I suspect that the code can be safely reverted. Reverting that bit of code did fix the bug of silently ignoring erorrs!
Thanks!
The text was updated successfully, but these errors were encountered: