Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpClient] fix throwing HTTP exceptions when the 1st chunk is emitted#33643

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?4.3
Bug fix?yes
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

Spotted while discussing the client with@Seldaek
The current behavior is transient: depending on the speed of the network/server, the exception can be thrown, or not.

This forces one do deal with 3/4/5xx when the first chunk is yielded.

@nicolas-grekasnicolas-grekas added this to the4.3 milestoneSep 19, 2019
nicolas-grekas added a commit that referenced this pull requestSep 20, 2019
…nk is emitted (nicolas-grekas)This PR was merged into the 4.3 branch.Discussion----------[HttpClient] fix throwing HTTP exceptions when the 1st chunk is emitted| Q             | A| ------------- | ---| Branch?       | 4.3| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       | -| License       | MIT| Doc PR        | -Spotted while discussing the client with@SeldaekThe current behavior is transient: depending on the speed of the network/server, the exception can be thrown, or not.This forces one do deal with 3/4/5xx when the first chunk is yielded.Commits-------3c93764 [HttpClient] fix throwing HTTP exceptions when the 1st chunk is emitted
@nicolas-grekasnicolas-grekas merged commit3c93764 intosymfony:4.3Sep 20, 2019
$this->assertSame(['application/json'],$response->getHeaders(false)['content-type']);
$this->assertNotEmpty($response->getContent(false));

$response =$client->request('GET','http://localhost:8057/404');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

could we create separate tests rather than a single testtestClientError actually performing multiple subsequent tests ? This would allow each test name to describe what it is testing.

@nicolas-grekasnicolas-grekas deleted the hc-transient-fix branchSeptember 20, 2019 10:16
@fabpotfabpot mentioned this pull requestOct 7, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-grekas@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp