-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpClient] Issues with debug panel #52441
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
Comments
Building the curl command relies on being able to read the debug log. I guess this weird header being reported is a weird way to report that it could not build the command (probably because it is actually the http client reporting a weird info instead) |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I just opened a PR to remove this |
FTR: $ php --re curl | head
Extension [ <persistent> extension #24 curl version 8.1.20 ] { But the message is:
Something looks wrong anyway |
@lyrixx this is the version of the php curl extension (which is the same than the PHP version when it is bundled in PHP), not of libcurl (there is no version 8.1.20 of curl anway). Use |
Alternatively, use |
ahhh, okay. Thanks $ composer show -p |grep curl
ext-curl 8.1.20 The curl PHP extension
lib-curl 7.64.0 The curl library
lib-curl-libssh2 1.8.0 curl libssh2 version
lib-curl-openssl 1.1.1.14 curl OpenSSL version (1.1.1.14)
lib-curl-zlib 1.2.11 curl zlib version
$ php -i |grep cURL
cURL support => enabled
cURL Information => 7.64.0 Indeed, the curl version is ... the bad one! |
it's time to update ;) |
…disabled (stof) This PR was merged into the 6.3 branch. Discussion ---------- Disable the "Copy as cURL" button when the debug info are disabled | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #52441 | License | MIT Some versions of curl have a bug that prevents collecting the debug info. This is reported by writing an explanation message in the debug buffer. When this is detecting, the "Copy as cURL" button is now skipped (like for other unsupported cases) instead of copying a broken command. Commits ------- f66dd14 Disable the "Copy as cURL" button when the debug info are disabled
Symfony version(s) affected
6.3.latest
Description
I used the profiler, and noticed many things that seems weird / wrong
The copy as curl button
When I click on the button I got:
Duration
I'm not sure which total I must read - It could be nice to display it in the profiler directly, like with doctrine query
The text was updated successfully, but these errors were encountered: