08-09-2020, 21:51:20
Je n'ai pas de message d'erreur cette fois, mais l'application ne se lance toujours pas.
J'ai toutefois une alerte de protocole non supporté :
EDIT :
au temps pour moi, le port n'est pas le même !
J'ai donc là aussi des erreurs :
J'ai toutefois une alerte de protocole non supporté :
Code :
$ uvicorn wsgi:app
INFO: Started server process [10758]
INFO: Waiting for application startup.
INFO: ASGI 'lifespan' protocol appears unsupported.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)EDIT :
au temps pour moi, le port n'est pas le même !
J'ai donc là aussi des erreurs :
Code :
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/debian/tmp-git/test-nginx/nginxenv/lib/python3.7/site-packages/uvicorn/protocols/http/httptools_impl.py", line 390, in run_asgi
result = await app(self.scope, self.receive, self.send)
File "/home/debian/tmp-git/test-nginx/nginxenv/lib/python3.7/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__
return await self.app(scope, receive, send)
File "/home/debian/tmp-git/test-nginx/nginxenv/lib/python3.7/site-packages/uvicorn/middleware/asgi2.py", line 6, in __call__
instance = self.app(scope)
TypeError: __call__() missing 1 required positional argument: 'start_response'
INFO: 127.0.0.1:52160 - "GET / HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/debian/tmp-git/test-nginx/nginxenv/lib/python3.7/site-packages/uvicorn/protocols/http/httptools_impl.py", line 390, in run_asgi
result = await app(self.scope, self.receive, self.send)
File "/home/debian/tmp-git/test-nginx/nginxenv/lib/python3.7/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__
return await self.app(scope, receive, send)
File "/home/debian/tmp-git/test-nginx/nginxenv/lib/python3.7/site-packages/uvicorn/middleware/asgi2.py", line 6, in __call__
instance = self.app(scope)
TypeError: __call__() missing 1 required positional argument: 'start_response'
INFO: 127.0.0.1:52162 - "GET /favicon.ico HTTP/1.1" 500 Internal Server Error
