-
Notifications
You must be signed in to change notification settings - Fork 234
fix: remove redundant .then() causing unhandled exception #1671
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
Conversation
Fix copied from: googleapis#1671
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works! Please merge it!
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 |
@garymathews Apologies, I've been OoO and I'm the main maintainer. Hopefully we can get this in quickly. |
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.
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
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
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
legacy
branch, 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: