Score:0

"upstream sent too big header while reading response header from upstream" error - Increasing buffers not working

ng flag

I've set up the Bitnami Nginx Open Source Stack at AWS. I've started creating an application using auth0 as my authentication service. After successful login, the code must be exchanged for an access token. This is done using $auth0->exchange($url_with_params);

However, this gives me the following error:

    2021/10/10 17:38:36 [error] 14305#14305: *9 upstream sent too big header while reading response header from upstream, client: [ip], server: api.redacted.com, request: "GET /login_callback?code=FKIk4X_uIgqKg-zo&state=40da33a1177fc8fbc275dcaf826fc819 HTTP/1.1", upstream: "fastcgi://unix:/opt/bitnami/PHP/var/run/www.sock:", host: "api.redacted.com", referrer: "https://deva.redacted.com/"   

I've read a hundred posts saying that one must increase the proxy_buffer_size or the fastcgi_buffer_size to get rid of this error. I've tried increasing both parameters and restarted Nginx, but I keep getting the same error.

I've also tried to set proxy_buffering off and fastcgi_buffering off, but I still get the same error.

There must be something else going on here.
How can I log or see the actual response that Nginx refuses to handle?

Score:0
id flag
*_buffers 16 32k;
*_buffer_size 64k;
*_busy_buffers_size 64k;

Use the above values first and check whether it helps or not. If it doesn't work then you can gradually increase these values to 128k, 256k, and 512k respectively.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.