-
Notifications
You must be signed in to change notification settings - Fork 46
"No PSR-17 request factory found" incorrectly suggests guzzlehttp/psr7 #164
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
Sentry depends on an HTTP implementation. They recently changed implementations from zendframework/zend-diactoros to guzzlehttp/psr7 in their 2.3.0 release: https://github.com/getsentry/sentry-php/releases/tag/2.3.0 However, the tool they use to detect HTTP implementations can't actually detect guzzlehttp: php-http/discovery#164 By providing the "http-interop/http-factory-guzzle" interop library between guzzlehttp and the detection tool, we can ensure that Sentry is able to perform HTTP requests again. Differential Revision: https://phabricator.services.mozilla.com/D65425
Sentry depends on an HTTP implementation. They recently changed implementations from zendframework/zend-diactoros to guzzlehttp/psr7 in their 2.3.0 release: https://github.com/getsentry/sentry-php/releases/tag/2.3.0 However, the tool they use to detect HTTP implementations can't actually detect guzzlehttp: php-http/discovery#164 By providing the "http-interop/http-factory-guzzle" interop library between guzzlehttp and the detection tool, we can ensure that Sentry is able to perform HTTP requests again. Differential Revision: https://phabricator.services.mozilla.com/D65425
No you aren't: the |
A year later the package is still not taged :/ This took me an hour to figure hour, painful WTF. The dev version packages should not be part of list that provide interface. |
i am not exactly sure what you are reporting. afaik the only thing not tagged in php-http/discovery is the removal of puli. which should have been tagged, i am doing that now. |
I'm sorry, this might not be related to your repository. This one: #164 (comment) I'm not sure what repository this is, just reacted to the comments above which hold context shared with my problem. |
PHP version: 7.3
Description
Hi!
This seems related to #156 and #149.
I received the error:
But when I go to https://packagist.org/providers/psr/http-factory-implementation, the first item on the list is
guzzlehttp/psr7
. When I installed it, I got the same error. After some deep digging, If found out that I actually neededhttp-interop/http-factory-guzzle
. Installing that package does fix things - it's just the recommendation that was wrong (and tough to debug!).Am I correct that
guzzlehttp/psr7
should not be shown on the list of "http factory implementations"? If so, why is it there? Is it a bug in that package's metadata? Something on Packagist? I don't know much about this - I'm just trying to get a bundle that is a few layers above this to work :).Thanks!
The text was updated successfully, but these errors were encountered: