You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jderusse
changed the title
Fix content not reported in TracableResponse decorated by AsyncResponse
[HttpClient] Fix content not reported in TracableResponse decorated by AsyncResponse
Oct 19, 2020
revert #38413 and make TracableClient decorating RetryClient
that's an option.
We could then improve RetryableClient to make it report the retries in details (I'm thinking about merging the response_header and debug info of all retries in one)
For the record, I skipped collecting the content consciously back then: to prevent collecting streamed responses (aka potentially long or even infinite content, think SSE).
nicolas-grekas
changed the title
[HttpClient] Fix content not reported in TracableResponse decorated by AsyncResponse
[HttpClient] Fix decorating progress info in AsyncResponse
Oct 20, 2020
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR reverts #38413, and send AsyncContext to onProgress callback.
Fix content not reported in TracableResponse decorated by AsyncResponse[HttpClient] Fix content not reported in TracableResponse decorated by AsyncResponseCan you write a test for this issue?
With this PR I have
response_content
instead ofresponse_json
. Is it possible to getresponse_json
?Uh oh!
There was an error while loading. Please reload this page.
03d14f1
to277403e
CompareDone.
We don't know how the response has been fetched (via
getContent
ortoArray
), thus we can't useresponse_json
.I've 2 solutions:
response_json
when response'scontent-type
containsjson
/cc @nicolas-grekasUh oh!
There was an error while loading. Please reload this page.
that's an option.
We could then improve
RetryableClient
to make it report the retries in details (I'm thinking about merging theresponse_header
anddebug
info of all retries in one)Uh oh!
There was an error while loading. Please reload this page.
For the record, I skipped collecting the content consciously back then: to prevent collecting streamed responses (aka potentially long or even infinite content, think SSE).
Uh oh!
There was an error while loading. Please reload this page.
Ready for review.
Changed the implementation to revert Client decoraton and collect retries metadata
This is how it likes:

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
[HttpClient] Fix content not reported in TracableResponse decorated by AsyncResponse[HttpClient] Fix decorating progress info in AsyncResponse51440f2
to5c0d95d
Compare5c0d95d
toe7df600
CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
073b73b
to968c3a2
Compare[HttpClient] Fix decorating progress info in AsyncResponse
e325f51
968c3a2
toe325f51
CompareThank you @jderusse.
508ec9c
into symfony:5.xLabels
8 participants