【python 错误解决】414 Request-URI Too Large
falsk 采用nginx 分发请求时,url 太长,nginx 报错了,导致requests.get 返回不了数据。
错误描述:
[2019-08-12 09:56:38] <html>
<head><title>414 Request-URI Too Large</title></head>
<body bgcolor="white">
<center><h1>414 Request-URI Too Large</h1></center>
<hr><center>nginx</center>
</body>
</html>
解决办法:
在nginx.conf http中增加,重启nginx
client_header_buffer_size 512k;
large_client_header_buffers 4 512k;