Python 使用django和asgi读取超时

Python 使用django和asgi读取超时,python,django,python-asyncio,uvicorn,Python,Django,Python Asyncio,Uvicorn,我正在尝试使用Django3.1 我尝试使用asgiserveruvicorn并从命令开始: uvicorn --workers 10 --reload myproject.asgi:application --port 9006 但是当我转到api/aggregated\u sync/时,它总是给我一个ReadTimeout错误,如下所示: timeout=timeout.as_dict(), File "/usr/local/python3.6.8/lib/py

我正在尝试使用
Django3.1

我尝试使用
asgi
server
uvicorn
并从命令开始:

 uvicorn --workers 10 --reload myproject.asgi:application  --port 9006
但是当我转到
api/aggregated\u sync/
时,它总是给我一个
ReadTimeout
错误,如下所示:


    timeout=timeout.as_dict(),
  File "/usr/local/python3.6.8/lib/python3.6/contextlib.py", line 99, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/jiamin/venv_async_django/lib/python3.6/site-packages/httpx/_exceptions.py", line 359, in map_exceptions
    raise mapped_exc(message, **kwargs) from exc  # type: ignore
httpx.ReadTimeout: timed out

如何修复此错误


    timeout=timeout.as_dict(),
  File "/usr/local/python3.6.8/lib/python3.6/contextlib.py", line 99, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/jiamin/venv_async_django/lib/python3.6/site-packages/httpx/_exceptions.py", line 359, in map_exceptions
    raise mapped_exc(message, **kwargs) from exc  # type: ignore
httpx.ReadTimeout: timed out