GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(hapi): Specify error channel to filter boom errors by s1gr1d · Pull Request #12725 · getsentry/sentry-javascript

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Jul 2, 2024

Copy link
Copy Markdown
Member

If errors are handled with Boom inside onPreResponse, the error should not be reported to Sentry.

fixes #12702

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

eweap reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@s1gr1d
fix(hapi): Specify error channel to filter boom errors
68f7ec4
@s1gr1d
s1gr1d requested review from andreiborza, lforst, mydea and onurtemizkan July 2, 2024 13:05
@s1gr1d
add error check
fcc319c
mydea
mydea approved these changes Jul 2, 2024
View reviewed changes

@mydea mydea left a comment

Copy link
Copy Markdown
Member

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.

nice! Great tests, too 🚀

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
onurtemizkan
onurtemizkan approved these changes Jul 2, 2024
View reviewed changes
@camsteffen

camsteffen commented Jul 2, 2024

Copy link
Copy Markdown

FWIW, I think there's another (arguably worse) version of this bug where onPreResponse recovers from the error with a 200 response.

I'm not sure it's valuable for the tests to enumerate all these possibilities though. We're just relying on Hapi to report an error on the error channel when applicable. The details of that are not Sentry's responsibility. But also I'm not a maintainer so don't mind me!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

s1gr1d and others added 3 commits July 3, 2024 10:27
@s1gr1d
fix E2E tests
4ce907e
@s1gr1d
Merge branch 'develop' into sig/hapi-onPreResponse
a2e5e8a
@s1gr1d
add test case for 2xx override
5df7186
@s1gr1d

s1gr1d commented Jul 3, 2024

Copy link
Copy Markdown
Member Author

@camsteffen Thanks for you engagement in this topic! 👍🏻 I am not sure if I understood you correctly. I added a test case for a "2xx override" inside onPreResponse. In our opinion, this should not be reported to Sentry as this could be done on purpose.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@s1gr1d
Merge branch 'develop' into sig/hapi-onPreResponse
02e80bf
@camsteffen

camsteffen commented Jul 3, 2024

Copy link
Copy Markdown

I guess what I'm suggesting is - I wonder if you could have a test like does not report errors from Hapi events on "internal" channel rather than trying to have a test for every possible scenario of an error appearing on the internal channel.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

s1gr1d and others added 2 commits July 4, 2024 09:23
@s1gr1d
Merge branch 'develop' into sig/hapi-onPreResponse
0824826
@s1gr1d
fix formatting
cba1c5a
@s1gr1d
s1gr1d merged commit 4018f80 into develop Jul 4, 2024
@s1gr1d
s1gr1d deleted the sig/hapi-onPreResponse branch July 4, 2024 12:16
@q1blue q1blue mentioned this pull request Jul 27, 2024
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.15.0 https-quantumblockchainai-atlassian-net/ossinsight#783
Open
@amykapernick amykapernick mentioned this pull request Jul 27, 2024
[Snyk] Upgrade @sentry/nextjs from 8.14.0 to 8.15.0 amykapernick/wedding#11
Open
@aam-digital-ci aam-digital-ci mentioned this pull request Jul 27, 2024
[Snyk] Upgrade @sentry/browser from 8.13.0 to 8.15.0 Aam-Digital/ndb-core#2482
Closed
This was referenced Jul 30, 2024
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.16.0 https-quantumblockchainai-atlassian-net/ossinsight#787
Open
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.17.0 https-quantumblockchainai-atlassian-net/ossinsight#791
Open
@amykapernick amykapernick mentioned this pull request Aug 1, 2024
[Snyk] Upgrade @sentry/nextjs from 8.14.0 to 8.17.0 amykapernick/wedding#12
Open
@wkylin wkylin mentioned this pull request Aug 1, 2024
[Snyk] Upgrade @sentry/react from 8.15.0 to 8.17.0 wkylin/pro-react-admin#370
Closed
@q1blue q1blue mentioned this pull request Aug 6, 2024
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.18.0 https-quantumblockchainai-atlassian-net/ossinsight#799
Open
@wkylin wkylin mentioned this pull request Aug 7, 2024
[Snyk] Upgrade @sentry/react from 8.15.0 to 8.18.0 wkylin/pro-react-admin#371
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mydea mydea mydea approved these changes
@lforst lforst Awaiting requested review from lforst
@andreiborza andreiborza Awaiting requested review from andreiborza
+1 more reviewer
@onurtemizkan onurtemizkan onurtemizkan approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Hapi errors are reported before onPreResponse

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@s1gr1d @camsteffen @mydea @onurtemizkan
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.