-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request Headers problem with php 8.1.15 #55
Comments
I will investigate, but this smells like the headers grew too big for the proxy server it seems to have been created to address the header size limitations of ChromeLogger... Essentially the log is written to a json file.. a url to that file is output in the response headers.. A browser plugin then requests the log. |
Hi @bkdotcom ! As far as the size limitations what I've also found was that when setting the max Header Size on bdkDebug the ChromeLogger yields an error saying it could not allocate X Kb for logging. |
I have updated the documentation for configuring ServerLog output Let me know if that clarifies how to get it up and running |
Hello @bkdotcom! As this "Server Log" extension https://chrome.google.com/webstore/detail/serverlog/ghmhlknahaejhdlobgpaoocmjlhgmcci does not work because it asks for a "key" in order to authenticate to the server. I've tried added the same key to both php Debug and the extension but it does not seem to work. |
the "key"used in the 2nd extension is unrelated to PHPDebugConsole's key... (if the key is required, any value should work with PHPDebugConsole.. as it's doesn't care about it) That said, I'd recommend the extension that's the easiest to use. At some point I'd like to try writing my own extension that supports both ServerLog and ChromeLogger and simply writes to the primary console tab... I will investigate the "could not allocate X Kb for logging" chromelogger issue... Were you able to get something to work? |
After a lot of testing I believe there is a problem when using php 8.1.15.
When setting route to "chromeLogger" and enabling requestHeadersOutput there is always this sequence of errors:
[proxy_fcgi:error] [pid 47499:tid 140439541749504] [client ... ] Premature end of script headers: report_novos_cartoes.php, referer: https://www......eu/.../
[proxy_fcgi:error] [pid 47499:tid 140439541749504] [client ... ] AH01070: Error parsing script headers, referer: https://www....eu/.../
I messed with a lot of buffer sizes and so on, but the only solution was to change to php 8.0.23 and now it is working.
The text was updated successfully, but these errors were encountered: