在我的 python 脚本中,有多个 API 调用,并且 API 在同一个应用程序中!我正在使用 django 框架!通过 python3 manage.py runserver 它工作正常!
但是在带有 nginx 服务器、主管、gunicorn 的 centos7 虚拟机中,调用第三个 API 后它无法正常工作!
出现了这个错误:
The complete exception is provided below:
<class 'requests.exceptions.ReadTimeout'>
HTTPConnectionPool(host='x.x.x.x', port=y): Read timed out. (read timeout=None)
在 nginx 错误日志中只有这个错误:
[error] 12020#12020: *133 upstream prematurely closed connection while reading response header from upstream, client:
需要一些帮助
蓝山帝景
子衿沉夜
随时随地看视频慕课网APP
相关分类