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 exception in case of PSR17 discovery failure#35245

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
fabpot merged 1 commit intosymfony:4.4fromnicolas-grekas:hc-discovery-error
Jan 7, 2020

Conversation

@nicolas-grekas
Copy link
Member

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

On symfony.com, we need to use HTTPlug for 3rd party libs. Whennyholm/psr7 is not installed, we currently see an exception sayingNo HTTPlug clients found. fromHttpClientDiscovery.

This fixes the message by correctly suggestingnyholm/psr7 instead, since thereis an HTTPlug client:HttplugClient from our HttpClient component.

It's quite unfortunate thatguzzle/psr7 provides no PSR17 factory yet, because that would have solved some part of this deps mess. /cc@Nyholm@sagikazarmark FYI
Note thathttps://packagist.org/providers/psr/http-factory-implementation listsguzzle/psr7 but this is a wrong solution: no tagged release of it is PSR17-compatible, which means installing it doesn't solve the issue.

@nicolas-grekas
Copy link
MemberAuthor

Hum, actually the message saysNo PSR-17 response factory found. Install a package from this list: https://packagist.org/providers/psr/http-factory-implementation.
The one aboutNo HTTPlug clients found. is from another dep that callsHttp\Discovery\HttpClientDiscovery::find().

This is a mess, sorry :)

@nicolas-grekasnicolas-grekas deleted the hc-discovery-error branchJanuary 7, 2020 13:12
@nicolas-grekasnicolas-grekas restored the hc-discovery-error branchJanuary 7, 2020 13:56
@nicolas-grekas
Copy link
MemberAuthor

Reopening, the message is still better.

Copy link
Member

@NyholmNyholm left a comment

Choose a reason for hiding this comment

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

I agree that this message is better and more helpful.

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

fabpot added a commit that referenced this pull requestJan 7, 2020
…ure (nicolas-grekas)This PR was merged into the 4.4 branch.Discussion----------[HttpClient] fix exception in case of PSR17 discovery failure| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       | -| License       | MIT| Doc PR        | -On symfony.com, we need to use HTTPlug for 3rd party libs. When `nyholm/psr7` is not installed, we currently see an exception saying `No HTTPlug clients found.` from `HttpClientDiscovery`.This fixes the message by correctly suggesting `nyholm/psr7` instead, since there *is* an HTTPlug client: `HttplugClient` from our HttpClient component.It's quite unfortunate that `guzzle/psr7` provides no PSR17 factory yet, because that would have solved some part of this deps mess. /cc@Nyholm@sagikazarmark FYINote thathttps://packagist.org/providers/psr/http-factory-implementation lists `guzzle/psr7` but this is a wrong solution: no tagged release of it is PSR17-compatible, which means installing it doesn't solve the issue.Commits-------96e70a4 [HttpClient] fix exception in case of PSR17 discovery failure
@fabpotfabpot merged commit96e70a4 intosymfony:4.4Jan 7, 2020
@nicolas-grekasnicolas-grekas deleted the hc-discovery-error branchJanuary 13, 2020 14:17
This was referencedJan 21, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@NyholmNyholmNyholm approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@fabpot@Nyholm@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp