This repository was archived by the owner on Mar 17, 2026. It is now read-only.
fix: remove redundant .then() causing unhandled exception#1671
Merged
Conversation
phil-booth-qatalog
added a commit
to qatalog/nodejs-pubsub
that referenced
this pull request
Jan 6, 2023
Fix copied from: googleapis#1671
Contributor
Author
|
CC @feywind @alexander-fenster @hongalex I'd say this is a high priority issue, since without an unhandledException handler the app will just terminate upon receiving an error during an ack |
feywind
previously approved these changes
Jan 23, 2023
Collaborator
|
@garymathews Apologies, I've been OoO and I'm the main maintainer. Hopefully we can get this in quickly. |
gcf-merge-on-green
Bot
dismissed stale reviews from feywind and viniychuk
January 23, 2023 20:38
This review does not reference the most recent commit, and you are using the secure version of merge-on-green. Please re-review the most recent commit.
feywind
approved these changes
Jan 23, 2023
gcf-owl-bot Bot
added a commit
that referenced
this pull request
Mar 12, 2025
feat: add request/response debug logging to gapics, update templates to gax 5 and node 18 (#1671) fix: add json files to tsconfig templates (#1692) (ba6be1d) PiperOrigin-RevId: 735896588 Source-Link: googleapis/googleapis@3419af7 Source-Link: googleapis/googleapis-gen@f35ba11 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjM1YmExMTQyZjRlMTY4MjIyMzI3ZDg5MmI1ZjZlZTkwOGU1ZDQ2MSJ9
1 task
gcf-owl-bot Bot
added a commit
that referenced
this pull request
Mar 27, 2025
PiperOrigin-RevId: 738212310 Source-Link: googleapis/googleapis@803b234 Source-Link: googleapis/googleapis-gen@4f44bd2 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGY0NGJkMmJhYThkZDVhNzFjYTBjZWJkYjE2NGMzYzM0MzQxZWQ4NyJ9 chore: update typescript gapic generator to 4.8.1 feat: add request/response debug logging to gapics, update templates to gax 5 and node 18 (#1671) fix: add json files to tsconfig templates (#1692) (ba6be1d) PiperOrigin-RevId: 735896588 Source-Link: googleapis/googleapis@3419af7 Source-Link: googleapis/googleapis-gen@f35ba11 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjM1YmExMTQyZjRlMTY4MjIyMzI3ZDg5MmI1ZjZlZTkwOGU1ZDQ2MSJ9 feat: deprecate `enabled` field for message transforms and add `disabled` field docs: deprecate `enabled` field for message transforms and add `disabled` field PiperOrigin-RevId: 734192973 Source-Link: googleapis/googleapis@263055c Source-Link: googleapis/googleapis-gen@a0d1189 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTBkMTE4OTczZTY4NTgwZDAwNGUxMzI5ODk2OTEwNDFlYjZlOTEyZCJ9 chore: update copyright year for auto-generated protos PiperOrigin-RevId: 732130682 Source-Link: googleapis/googleapis@9415ba0 Source-Link: googleapis/googleapis-gen@2905f83 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjkwNWY4MzM3NTZjMmIyMGIzMjgyYmU4NGI1MTFlMDQwZmU1NGYzMyJ9 docs: A comment for field `code` in message `.google.pubsub.v1.JavaScriptUDF` is changed PiperOrigin-RevId: 723009432 Source-Link: googleapis/googleapis@40bc860 Source-Link: googleapis/googleapis-gen@5f52ac8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWY1MmFjODI0YTA5YTkxZDllNWFmYWRiZTAzMzdiMzUyYmY5MDhlOSJ9 feat: add support for message transforms to Topic and Subscription docs: Fix link for AnalyticsHubSubscriptionInfo PiperOrigin-RevId: 721335502 Source-Link: googleapis/googleapis@6161270 Source-Link: googleapis/googleapis-gen@aeb0bb9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWViMGJiOWYxMDRhMzVlM2JkNDViN2ZjOGRlOGVmMjc5ODdhNmU1OCJ9 feat: paging changes for bigquery fix: add x-goog-request params to headers for LRO-polling methods fix: remove extra protos in ESM & capture ESM in headers docs: update comments for a Nodejs stream object PiperOrigin-RevId: 721038181 Source-Link: googleapis/googleapis@331a41a Source-Link: googleapis/googleapis-gen@e81b4c5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTgxYjRjNWI1MjA4ODk1ZjY2M2EyNDA0ODYxNWE1OWQ1NjM2ZjQxNSJ9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #1547 🦕
Note: If you are opening a pull request against a
legacybranch, PLEASE BE AWARE that we generally won't accept these except for things like important security fixes, and only for a limited time.I'm not sure why
.then()was added here, it appears to be redundant. But without chaining it will cause an unhandled exception; which is causing #1547.Here's an example of an uncaught exception being thrown when chaining isn't used: