Skip to content
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

TypeError: self._handler is not a function in @sentry/node 7.8.0 #5493

Closed
3 tasks done
public opened this issue Jul 29, 2022 · 7 comments · Fixed by #5497
Closed
3 tasks done

TypeError: self._handler is not a function in @sentry/node 7.8.0 #5493

public opened this issue Jul 29, 2022 · 7 comments · Fixed by #5497

Comments

@public
Copy link

public commented Jul 29, 2022

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/node

SDK Version

7.8.0

Framework Version

No response

Link to Sentry event

https://sentry.io/organizations/purple-dot/issues/3461674365/?project=1547841

Steps to Reproduce

  1. Upgrade Sentry from 6.16.1
  2. Capture an error.

Expected Result

Get the actual errors showing in Sentry.io.

Actual Result

Get TypeError: self._handler is not a function errors instead of the real errors.

@public
Copy link
Author

public commented Jul 29, 2022

This appears to be a regression of #2599

@Lms24
Copy link
Member

Lms24 commented Jul 29, 2022

Hi @public, thanks for reporting! Will fix this soon

@Lms24
Copy link
Member

Lms24 commented Aug 1, 2022

Hi @public I'm gonna merge the fix (see link above) soon but I was just curious how this bug could happen. I therefore wanted to ask if you're by any chance using other Sentry packages than @sentry/node (and @sentry/tracing)? We talked about this issue internally and the only way we can explain how this happens is that there are other (way older) versions of Sentry installed that use the LinkedErrors integration which doesn't have a _handler method. But again, this would only be a problem if the version used was a lot older.

Anyway, we'll release a patch soon and then this should be fixed. Lmk if it works for you then.

@public
Copy link
Author

public commented Aug 1, 2022

We have sentry/browser, sentry/node and sentry/cli installed. I think we might also import sentry/browser on the server side during SSR but not 100% sure on that.

@Lms24
Copy link
Member

Lms24 commented Aug 1, 2022

And just to be sure, they are all on version 7.8.0? Versions must match for all installed Sentry packages to guarantee interoperablity

@public
Copy link
Author

public commented Aug 1, 2022

sentry/cli was on 2.5.0, everything else on 7.8.0

@public
Copy link
Author

public commented Aug 1, 2022

Thanks for fixing this so fast :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants