Skip to content

Instantly share code, notes, and snippets.

@andrewdaluz
Last active February 15, 2021 23:04
Show Gist options
  • Save andrewdaluz/75cd6cd3d2fe68d67ccda147b3d74210 to your computer and use it in GitHub Desktop.
Save andrewdaluz/75cd6cd3d2fe68d67ccda147b3d74210 to your computer and use it in GitHub Desktop.
upstream sent too big header while reading response header from upstream
I was getting this error just now when trying to perform a POST. In my ngnix-error.log I'm seeing this error:
upstream sent too big header while reading response header from upstream
I was able to fix by adding these two lines to my valet.conf file in the location `/usr/local/etc/nginx/valet/valet.conf`:
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
I also tested this POST request with less form fields and it seems to be consistent with the amount of data being submitted.
Another solution: https://github.com/laravel/valet/issues/290
And then restart everything:
brew services restart nginx && valet restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment