Exeption using Django+channels ASGI
See original GitHub issueWhen I use Django + Channels and ASGI application I got this exception.
Exception inside application: sentry_patched_asgi_handler() takes 3 positional arguments but 4 were given
Traceback (most recent call last):
File "env/lib/python3.8/site-packages/channels/routing.py", line 71, in __call__
return await application(scope, receive, send)
TypeError: sentry_patched_asgi_handler() takes 3 positional arguments but 4 were given
HTTP POST /api/v2/auth/login 500 [0.67, 127.0.0.1:37750]
This is my sdk init:
sentry_sdk.init(
dsn="...",
integrations=[DjangoIntegration()],
environment=os.getenv('ENVIRONMENT', "development"),
# If you wish to associate users to errors (assuming you are using
# django.contrib.auth) you may enable sending PII data.
send_default_pii=True
)
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Troubleshooting — Channels 4.0.0 documentation
This exception occurs when your application tries to import any models before Django finishes its initialization process aka django.setup() .
Read more >python - Error when integrating django channels with existing ...
Exception inside application: init() takes 1 positional argument When adding ASGI_APPLICATION in Django 3.1 for channels
Read more >ASGI errors when deploying Django project for production ...
I want to deploy my django project and I used ASGI server I… ... core/asgi.py", line 12, in <module> from channels.auth import AuthMiddlewareStack...
Read more >Async in django . Asgi file
Hello . i have created a chat app using django channels and websockets , it is working in development environment nicely without any...
Read more >Channels Documentation - Read the Docs
with Channels and still usable - with Django's native ASGI support but you can ... not raising this exception - the server will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Confirmed that the issue is fixed. Currently using
0.20.3
.@casper936 the problem is fixed in master and will be fixed in 0.19.3