question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

21.9.0 Breaks Sentry Integration

See original GitHub issue

Describe the bug With the new update and rewrite of some of the internals of Sentry, it has broken the Sentry Integration

Code snippet https://starb.in/n2Q1Y5.py

Tracelog
Error while handling error: sentry_error_handler_lookup() takes 2 positional arguments but 3 were given
Stack: Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/sanic/http.py", line 141, in http1
    await self.protocol.request_handler(self.request)
  File "sentry_handle_request", line 3, in sentry_handle_request
    import logging
NameError: name 'Hub' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "handle_exception", line 28, in handle_exception
    Awaitable,
  File "/usr/local/lib/python3.8/site-packages/sanic/handlers.py", line 112, in response
    handler = self.lookup(exception, route_name)
TypeError: sentry_error_handler_lookup() takes 2 positional arguments but 3 were given

Expected behaviour It not to break logging

Environment (please complete the following information):

  • Version:
    • Sanic: 21.9.0
    • Sentry: 1.4.3 & 1.3.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
ahopkinscommented, Nov 16, 2021

The fix for this in sentry is merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Everything is Broken and I Don't Know Why - Sentry
Sentry developer Matt Robenolt discusses these questions in this talk from JSConf. He's given versions of this presentation multiple times since.
Read more >
sentry Changelog - PyUp.io
**Breaking Change**: This version introduces a change to the grouping of issues. The SDK now sets the `inApp` flag for frames originating from...
Read more >
CHANGES · master · mirrors / getsentry / sentry · GitCode
Please see https://forum.sentry.io/t/breaking-frontend-changes-for-custom-plugins ... Some caveats: - The Slack integration requires Slack workspace tokens.
Read more >
@sentry/react - npm
If the Tracing integration is not enabled, the Profiler component will not work. The Profiler tracks component mount, render duration and updates. Requires ......
Read more >
Error Tracking - GitLab Docs
To use the GitLab backend, see integrated error tracking. To use Sentry as the backend, see Sentry error tracking. No matter what backend...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found