Replies: 1 comment
-
Something similar happened to me (502 errors resolved with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Im developing an API in Symfony and needed to upgrade my php version to 7.4. After upgrading I got a 502 whenever I did something wrong (array to string conversion for example), instead of seeing the actual error reporting.
I looked for solutions and tried all the suggestions found both in the issues list in this repo as on StackOverflow; installing, reinstalling, upgrading, brew doctor/cleanup, nginx fastcgi_buffer, all of it. The last on did seem to help on certain errors, but even trying different values did not solve it completely.
By looking at the log I noticed it was always cut off at 1982 characters, and figured it might have something to do with the logging itself. Finally after setting
fastcgi.logging = 0;
inphp.ini
, the 502 disappeared and I saw normal error reporting.Im not sure why this happens when enabling the logging again, but as turning it off isnt really a solution, does anyone have a clue as to why this is happening and what I can do?
Running on:
Beta Was this translation helpful? Give feedback.
All reactions