Skip to content

common: emit response event on correct stream#1847

Merged
callmehiphop merged 1 commit intogoogleapis:masterfrom
stephenplusplus:spp--1846
Nov 30, 2016
Merged

common: emit response event on correct stream#1847
callmehiphop merged 1 commit intogoogleapis:masterfrom
stephenplusplus:spp--1846

Conversation

@stephenplusplus
Copy link
Contributor

Fixes #1846

We were incorrectly emitting the response event on the gRPC request stream. As for why this fixes #1846... not so sure. Possibly a quirk of the inner-workings of the native Stream event handlers.

@stephenplusplus stephenplusplus added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. core labels Nov 30, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 30, 2016
@stephenplusplus
Copy link
Contributor Author

@harscoet can you test this out? Find node_modules/@google-cloud/bigtable/src/table.js and find/replace:

- this.emit('response', grcpStatus);
+ stream.emit('response', grcpStatus);

@harscoet
Copy link

It fixes when error occured but now success callback is never called :/

@stephenplusplus
Copy link
Contributor Author

Confirmed, the solution in this PR was a mistake. The original behavior was correct. I'll re-open your original issue and keep digging. Sorry about this!

sofisl pushed a commit that referenced this pull request Feb 24, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Feb 25, 2026
* feat: support OLM Prefix/Suffix

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* updated to camel case

* fix merge

* fixed compile error

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* refactored tests

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* refactored tests

* refactored tests

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Feb 26, 2026
* fix: set grpc useragent

* fix: review comments
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request Mar 18, 2026
* feat: support OLM Prefix/Suffix

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* updated to camel case

* fix merge

* fixed compile error

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* refactored tests

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* refactored tests

* refactored tests

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement. core type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BIGTABLE] Insert callback called multiple times if err

4 participants