-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
I'm getting DiscoveryFailedException Error #691
Comments
I did do some research and searched the issues and documentation but i found no solution. I also searched the internet and i tried to run: |
I have also tried to run: |
What do you have installed as a HTTP client? If nothing yet, try installing Guzzle. If you give us the "requires" section of your Factory discovery can be a real pain when you least expect it, because it is generally very poorly documented. It is supposed to make it easier by looking for installed packages it can use, but if nobody is told one or more of a selection of packages needs to be installed, then it leaves you hanging there. So what I think needs to happen here, as a quick-start:
You may not even need the guzzle 7 adapter. I tend to resort to trial-and-error adding things in, and taking them out again to see if they are needed. The documentation is out there, but spread over too many packages to easily get a good picture of what is needed, if you aren't working with these packages every day. Hopefully that helps. |
For anyone who updates by any chance, my
|
I did have guzzle installed on my previous installation as i was using the default option and not using a special adapter as specified in the installation documentation. I even created a new project to test if i would get the same error, I cloned the omnipay-example on my server and the error persisted. Perhaps it is been caused by some some [dependency changes]? (38f66a0)? |
I don't see the guzzle client in your Guzzle 7 client already includes the PSR messages so you don't need to add that explicitely. I'm not sure any Omnipay driver even used PSR-7 messages. |
I've run into the same issue, and can confirm explicitly installing
The reason
I'm using |
I recently ran composer update on my server and now i can't get omnipay to work anymore.
I am using PayPal and Stripe gateways but the error i am getting for both gateways is:
Fatal error: Uncaught Http\Discovery\Exception\DiscoveryFailedException: Could not find resource using any discovery strategy. Find more information at http://docs.php-http.org/en/latest/discovery.html#common-errors - No valid candidate found using strategy "Http\Discovery\Strategy\CommonClassesStrategy". We tested the following candidates: Nyholm\Psr7\Factory\HttplugFactory, Http\Message\MessageFactory\GuzzleMessageFactory, Http\Message\MessageFactory\DiactorosMessageFactory, Http\Message\MessageFactory\SlimMessageFactory. - No valid candidate found using strategy "Http\Discovery\Strategy\CommonPsr17ClassesStrategy".
Any ideas on resolving this? I currently can't receive payments so it URGENT. Thank you.
The text was updated successfully, but these errors were encountered: