当前位置:网站首页>uwsgi-invalid-request-block-size invalid request block size: 21327 (max 4096)... Skip solution
uwsgi-invalid-request-block-size invalid request block size: 21327 (max 4096)... Skip solution
2022-06-22 04:40:00 【Humorous Jing Kejun】
It took me at least sixorseven hours to answer this question , It must be recorded . The problem is that , I have a seven - Bull joint url, Very, very long , use django Start the service separately , No problem , Pictures can be returned normally . But once used nginx + uwsgi There are problems. .
The first problems you encounter can be seen from the log .
invalid request block size: 21327 (max 4096)...skip
I searched the Internet for this question , The answer is .
buffer-size=32768
Let in uwsgi Add... In the configuration file of buffer-size.
Then do it , When you're done, just nginx Report errors .nginx The error reported is like this .
nginx - upstream sent too big header while reading response header from upstream
Then let me nginx Add the following
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
It doesn't work , And then start trying , Because with django There is no problem starting the service manually , Then test the manual first , then nginx+django Started manually . They all work . Then I started searching uwsgi, Is there a problem with this . But most of the Internet searches are in the above way . Then, the data of that interface is first proxied to django Manually activated services , Start with the service , And then do this uwsgi Of . Later, I checked around , I didn't find uwsgi The problem of , Start searching nginx This error is reported , At least 10 A few questions , I found it in an answer with only one praise .
uwsgi_buffer_size 16k;
uwsgi_busy_buffers_size 24k;
as a result of nginx No configuration uwsgi Of buffer, fastcgi This is not right , This should be fastapi For service And then it solved . Think about it , still uwsgi This one is not familiar , I didn't read the document .
Reference resources :
https://stackoverflow.com/questions/57933443/nginx-upstream-sent-too-big-header-while-reading-response-header-from-upstream
https://stackoverflow.com/questions/15878176/uwsgi-invalid-request-block-size/26941287#26941287
https://stackoverflow.com/questions/23844761/upstream-sent-too-big-header-while-reading-response-header-from-upstream
边栏推荐
- cadence allegro 17. X conversion tool for downgrading to 16.6
- QML control types: swipeview, pageindicator
- Es cannot work, circuitbreakingexception
- 音频帧大小的计算
- Reasons and Countermeasures for ThinkPHP's session being unable to obtain session in different ways in the same controller
- Is it safe to open an account in Guoyuan futures?
- Thinkphp 的sesssion在同一个控制器不同的方法无法获取session的原因和对策
- Use echart to draw 3D pie chart, dashboard and battery diagram
- Interaction between C language and Lua (practice 3)
- Researcher of Shangtang intelligent medical team interprets organ image processing under intelligent medical treatment
猜你喜欢

Network Interview eight part essay of daily knowledge points (TCP, startling group phenomenon, collaborative process)

Ora - 15063: ASM discovered an insufficient number of Disks for diskgroup Recovery - - -

LeetCode 437. Path sum III - binary tree series question 13

套用这套模板,玩转周报、月报、年报更省事

Introduction to AWS elastic Beanstalk

Solve the problem that swagger2 displays UI interface but has no content

Spark - Executor 初始化 && 报警都进行1次

How much does it cost to buy a fixed-term life insurance with an insured amount of 500000 at the age of 42? Is there any product recommendation

window10无法访问局域网共享文件夹

PCM数据格式
随机推荐
Kotlin项目报错缺少CoroutineContext依赖
[从零开始学习FPGA编程-39]:进阶篇 - 语法-硬件模块的单元测试:仿真激励、testbench
Browser -- a collection of common search operators -- use / instance
FaceShifter.ipynb
Es cannot work, circuitbreakingexception
Ora-15063: ASM discovered an insufficient number of disks for diskgroup
【sdx62】QCMAP_CLI手动拨号操作说明
中闽在线:以“积分”为纽带 共享线上渠道资源
active RM机子断电后,RM HA切换正常。但是YarnUI上查看不到集群资源,application也一直处于ACCEPTED状态。
The beta version of move protocol is stable, and it is temporarily decided to expand the scale of the prize pool
Kotlin project reports an error and lacks coroutinecontext dependency
系统整理|这个模型开发前的重要步骤有多少童鞋忘记细心做好(实操)
With these websites, do you still worry about job hopping without raising your salary?
How SQL server generates change scripts
Cloud function realizes fuzzy search function
On the income of enterprise executives
QML控件类型:SwipeView、PageIndicator
【故障诊断】stitch.py脚本失效
New chief maintenance personnel for QT project
Pytorch之contiguous函数