Nexmo SMS Exception error

Created by Abhinav Saraswat, Modified on Fri, 28 May 2021 at 05:53 PM by Abhinav Saraswat

If you see the following error in Nexmo


Argument 1 passed to Vonage\Client::setHttpClient() must be an instance of Psr\Http\Client\ClientInterface, instance of GuzzleHttp\Client given, called in xxxxxxxxxxxxxx


then


add this to your .env file (located at root location)

NEXMO_HTTP_CLIENT="Http\\Adapter\\Guzzle6\\Client"



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article