-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[http-client] No longer showing requests in the http_client profiler #49096
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
I can confirm that |
I can indeed see that for some reason, when I trace the calls to this function, it is being called from the behat test twice with the exact same stack trace. I assume that means in the most recent update, the trace is cleared once it has been read for the first time? |
The Behat test appears to just call |
Appreciated :) |
This may only be a DELETE request issue. I don't think my GET request tests were failing. To clarify, when I make a DELETE request to an endpoint, I am expecting an HTTP PURGE request to be made to a cache layer. When I create a PATCH request and expect that to result in a PURGE request to be sent to the cache layer, that test still works and I see the cache layer request in the http client traces. But adding a conflict for the latest http client release does resolve the issue so that problem is somewhere in the http client component. |
… (nicolas-grekas) This PR was merged into the 5.4 branch. Discussion ---------- [HttpClient] Fix collecting data non-late for the profiler | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #49096 | License | MIT | Doc PR | - `@silverbackdan` `@pforesi` could you please confirm that this fixes both your use cases? Commits ------- 3cb1d70 [HttpClient] Fix collecting data non-late for the profiler
Hi! I think this PR (#49104) broke something instead of fixing, since http_client requests was in profiler with v6.2.5 but not anymore with v6.2.6. |
If late data is missing when using the profile in WebTestCase, the right fix would be to make sure that |
Same problem here with 5.4.20 version. |
Same problem here in 6.2.6, Http Client tab is empty in profiler. When revert in 2.6.5, everything is ok. @nicolas-grekas an idea of the problem ? |
#49301 has been merged and fixed it. |
I tried the patch and it fixes the problem. Thank you |
Symfony version(s) affected
6.2.5
Description
In 6.2.2 I was getting trace information in the http_client profiler to run tests on so I could check some requests were made. In 6.2.5, the profiler no longer has this data.
How to reproduce
Using
$collector = $this->getProfile()->getCollector('http_client')
in my test, I loop through each client. The clients have an empty array in thetrace
property now.Possible Solution
Investigating
Additional Context
No response
The text was updated successfully, but these errors were encountered: