I'm using wordpress in Google App Engine. When I make a POST API, getting 
an Error : "upstream sent too big header while reading response header from 
upstream". which returns 502, Bad Gateway, nginx

The data(JSON) i'm sending in POST API is around 4kb. If the Data is sent 
below 2kb API returns success.

I tried App Engine Standard and Flexible Environment, but facing the same 
issue.

As per this link: upstream sent too big header while reading response 
header from upstream 
<https://stackoverflow.com/questions/23844761/upstream-sent-too-big-header-while-reading-response-header-from-upstream>

Modifying the nginx-app.config file with buffers will fix this issue. But 
it's not working.

In App Engine, the default nginx-app.config looks like.

location / {
    try_files $uri /index.php?q=$uri&$args;
}

location ~ ^/wp-admin {
    try_files $uri $uri/index.php?$args;
}

Not sure where I need to add these proxy buffers.

I tried adding the proxy buffers inside the default locations as shown 
below, but it didn't help.

location / {
    try_files $uri /index.php?q=$uri&$args;
    fastcgi_buffers 16 16k;
    fastcgi_buffer_size 32k;
    proxy_buffer_size 16k;
    proxy_buffers 4 32k;
    proxy_busy_buffers_size 32k;
}

Kindly help me to fix this issue.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3b09fdd4-6bb1-4240-ac8b-6f5601e8c97d%40googlegroups.com.
  • [google-appengine] ... Muthuvel

Reply via email to