Title: Google Cloud Functions: Async errors not caught · Issue #3695 · getsentry/sentry-javascript · GitHub
Open Graph Title: Google Cloud Functions: Async errors not caught · Issue #3695 · getsentry/sentry-javascript
X Title: Google Cloud Functions: Async errors not caught · Issue #3695 · getsentry/sentry-javascript
Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javascript/releases Provide a link to the aff...
Open Graph Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
X Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/3695
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Google Cloud Functions: Async errors not caught","articleBody":"\u003c!-- Requirements: please go through this checklist before opening a new issue -->\r\n\r\n- [x] Review the documentation: https://docs.sentry.io/\r\n- [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\n- [x] Use the latest release: https://github.com/getsentry/sentry-javascript/releases\r\n- [x] Provide a link to the affected event from your Sentry account\r\n\r\n## Package + Version\r\n\r\n- [x] `@sentry/serverless` `5.26.0` \r\n\r\n## Description\r\n\r\nI just tried using `sentry/serverless` with our Firebase application and can't get it to work at all. One thing that I noticed, which might be considered a bug is that errors thrown from within a promise don't seem to be caught by `GCPFunction.wrapHttpFunction`. Errors thrown synchronously are caught (as evident by the stacktrace) but also don't seem to be reported to Sentry in my particular case.\r\n\r\nShould the `wrapHttpFunction` catch errors thrown from async evaluations? [This forum thread](https://forum.sentry.io/t/google-cloud-functions-client-setup/1970) indicates that this is a limitation with GCP. If that's still the case I think this limitation should be documented in [the documentation](https://docs.sentry.io/platforms/node/guides/gcp-functions/) (happy to provide a PR).\r\n\r\nOverall I didn't have the best experience trying this and am a bit at a loss on how do debug this further. Is there a way to initialize Sentry in debug mode to get some additional information? \r\n\r\nThanks","author":{"url":"https://github.com/martinklepsch","@type":"Person","name":"martinklepsch"},"datePublished":"2021-06-17T11:47:46Z","url":"https://github.com/getsentry/sentry-javascript/issues/3695"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7fc98470-c212-2ce3-7af4-51e1ca44a06b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 95A6:225229:456B80:5FFBE4:6B0451CB |
| html-safe-nonce | 1c3226b9ed17d38b3a5017efab5b73824aa8c2f68582c1e667b3f6b40b0e2c7d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUE2OjIyNTIyOTo0NTZCODA6NUZGQkU0OjZCMDQ1MUNCIiwidmlzaXRvcl9pZCI6Ijc2MjQ5MDIxNTQ0NDg1NTY0OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a425c948f34913bd5d0e4409a2f578903e5aca66d4c0c48d44f1b2cff6f29833 |
| hovercard-subject-tag | issue:923830670 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/3695/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a1525cd06aa37b98cec7db79bf09a26cb1be65680ebe7672ad6f4f0114da9b1d/getsentry/sentry-javascript/issues/3695 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a1525cd06aa37b98cec7db79bf09a26cb1be65680ebe7672ad6f4f0114da9b1d/getsentry/sentry-javascript/issues/3695 |
| og:image:alt | Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | martinklepsch |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width