You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning: StreamingHttpResponse must consume synchronous iterators in order to serve them asynchronously. Use an asynchronous iterator instead.
My application does not explicitly use StreamingHttpResponse or FileResponse in any of its views and I still keep getting this warning every time my application starts. The application is served under ASGI using Uvicorn. Any suggestions how do I get rid of this warning?
I have narrowed down that django-browser-reload is the one that might be potentially causing this warning for me. Any help is appreciated.
The text was updated successfully, but these errors were encountered:
Hi, I am able to use django-browser-reload under ASGI using Uvicorn without this issue.
Python: 3.12.2
Django: 4.2.11
Package: 1.12.1
I was also getting the same error but that was caused by Whitenoise as it does not support ASGI as of now.
Are you using whitenoise by any chance? If yes, try disabling it and see if it fixes the issue.
Python Version
~=3.10.5
Django Version
4.2.7
Package Version
1.12.1
Browser
Chrome, Safari
Description
Warning: StreamingHttpResponse must consume synchronous iterators in order to serve them asynchronously. Use an asynchronous iterator instead.
My application does not explicitly use StreamingHttpResponse or FileResponse in any of its views and I still keep getting this warning every time my application starts. The application is served under ASGI using Uvicorn. Any suggestions how do I get rid of this warning?
I have narrowed down that django-browser-reload is the one that might be potentially causing this warning for me. Any help is appreciated.
The text was updated successfully, but these errors were encountered: