Forums / Installing on a Linux/Unix Server / nginx error: upstream sent too big header while reading response header from upstream

nginx error: upstream sent too big header while reading response header from upstream

Views: 3,168

Results 1 to 2 of 2
11 Mar 2024, 11:47 AM
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

nginx error: upstream sent too big header while reading response header from upstream

Just for info.

When Updating a cart with more than six products, I was getting a 500 server error.

Server log error:

2024/03/11 11:25:49 [error] 15478#15478: *33608 upstream sent too big header while reading response header from upstream, client: 123.123.13.123, server: myserver, request: "POST /carro?action=update_product HTTP/2.0", upstream: "https://123.123.123.123:8443/carro?action=update_product", host: "myweb", referrer: "https://myweb/carro"

nginx is in use as a reverse proxy.

changing this value from 8k to 128k seems to have cured the error.

proxy_buffer_size   128k;

The only data being passed is the form data:

securityToken: d50ac3ffedac8cba699012ac9d9083a5
cart_quantity[]: 3
products_id[]: 4709
cart_quantity[]: 6
products_id[]: 6254
cart_quantity[]: 2
products_id[]: 4995
cart_quantity[]: 3
products_id[]: 4594
cart_quantity[]: 3
products_id[]: 4704
cart_quantity[]: 10
products_id[]: 4742
cart_quantity[]: 1
products_id[]: 4706
Seems strange to get such an error with so few products....

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

11 Mar 2024, 1:17 PM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,305
Plugin Contributions:
39

Re: nginx error: upstream sent too big header while reading response header from upstream

I have found that attributes contribute to this significantly.