Nexmo / nexmo-laravel

Add Vonage functionality such as SMS and voice calling to your Laravel app with this Laravel Service Provider.
MIT License
317 stars 79 forks source link

cURL error 7: Failed to connect to rest.nexmo.com port 443: Connection timed out (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) #28

Closed jameslouies11 closed 5 years ago

jameslouies11 commented 5 years ago

I'm currently making sms verification code that sends after the user reserves in my system. It's working fine in my localhost but when I uploaded it on hostinger, this error comes out. When I submit, it loads very long then pops out that error. How could I fix this?

lornajane commented 5 years ago

That error 7 indicates that your code couldn't connect, and the long delay could mean a DNS problem or some other timeout. Since it works correctly on your development platform, I'm not sure it's a bug with the library. I recommend you contact your hosting provider and check that they have the same version of PHP as you use on your development platform (localhost) and ask if there's any particular configuration needed (such as a proxy) to make outgoing requests from your code.

lornajane commented 5 years ago

Closing after no further update was received