ccampbell / chromephp

class for logging PHP variables to Google Chrome console
http://www.chromelogger.com
1.38k stars 450 forks source link

a lot of logs throws 502 in nginx #10

Open qfox opened 12 years ago

qfox commented 12 years ago

Error in nginx log: 2011/12/16 11:02:57 [error] 13912#0: *5 upstream sent too big header while reading response header from upstream,... Client received HTTP/1.0 502 ...

fix: @@ -602,6 +602,12 @@ */ protected function _writeToFile($json) {

titosemi commented 12 years ago

I've having the same issue

qfox commented 12 years ago

Titosemi, probably you need to upgrade chromephp on server and client. Im not sure in it but try to do it.

qfox commented 12 years ago

If problem still exist after upgrading - just try to patch chromephp server-side library as I described above.

apfelbox commented 11 years ago

Take a look at this bug report: https://github.com/symfony/symfony/issues/8413

The response headers of php-fpm are too big for nginx to handle in the default config.

hakre commented 10 years ago

Also compare with #12, an overall option to hard-limit data-size that this logging class should process sounds useful for many things.