I have upgraded to the latest version of Sanic, i.e, 21.3.2 and it broke my sentry integration.
Sentry version:
sentry-sdk==1.0.0
aiocontextvars==0.2.2
This is the error traceback that I get:
Traceback (most recent call last):
File "/Users/ajay/.pyenv/versions/torpedo_boilerplate/lib/python3.7/site-packages/sanic/app.py", line 680, in handle_request
request.path, request.method, request.headers.get("host")
TypeError: sentry_router_get() takes 2 positional arguments but 4 were given
ERROR:sanic.error:sentry_router_get() takes 2 positional arguments but 4 were given
Traceback (most recent call last):
File "/Users/ajay/.pyenv/versions/torpedo_boilerplate/lib/python3.7/site-packages/sanic/app.py", line 680, in handle_request
request.path, request.method, request.headers.get("host")
TypeError: sentry_router_get() takes 2 positional arguments but 4 were given
please suggest what can be done to resolve this.