GithubHelp home page GithubHelp logo

cUrl 6.0 error about nexmo-laravel HOT 13 CLOSED

nexmo avatar nexmo commented on June 3, 2024 2
cUrl 6.0 error

from nexmo-laravel.

Comments (13)

mheap avatar mheap commented on June 3, 2024

Hi @segunmicheal27, thanks for reaching out (and sorry for the delay getting back to you)

That error indicates that your machine cannot reach rest.nexmo.com. The endpoint is working fine from my machine. Could you try again to make sure that it wasn't a temporary issue?

If you still can't connect, we can try and work it out together

Cheers, Michael

from nexmo-laravel.

segunmicheal27 avatar segunmicheal27 commented on June 3, 2024

i think there is issue with guzzle http, i use another curl library to make the request and it went through

let me try it again but i was trying it on my localhost

from nexmo-laravel.

segunmicheal27 avatar segunmicheal27 commented on June 3, 2024

i am still experiencing same error
i am using laravel 5.5 run with phpstorm IDE
i am 100% sure that all my credential are all correct

from nexmo-laravel.

mheap avatar mheap commented on June 3, 2024

Could you share code and/or explain what you're trying to accomplish so that I can try and replicate the issue?

from nexmo-laravel.

segunmicheal27 avatar segunmicheal27 commented on June 3, 2024

okay

public function sendSMS($message){

    Nexmo::message()->send([
        'to'   => '2348154967721',
        'from' => '2348154967721',
        'text' => $message
    ]);
}

and here is my route

Route::get('/send/sms/{message}', 'UsersController@sendSMS')->name('send_sms');

from nexmo-laravel.

mheap avatar mheap commented on June 3, 2024

@segunmicheal27 I just ran this code on Laravel 5.5 (changing to/from to my number) and received the message as expected.

Which versions of the following are you using?

  • Laravel
  • Nexmo/Laravel
  • Guzzle

from nexmo-laravel.

segunmicheal27 avatar segunmicheal27 commented on June 3, 2024

i am using laravel 5.5
"nexmo/client": "^1.1",
"nexmo/laravel": "1.0.2"

the Guzzle version that come laravel

i guess Guzzle 6.30

from nexmo-laravel.

segunmicheal27 avatar segunmicheal27 commented on June 3, 2024

please can you share ur code sample here or paste bin

from nexmo-laravel.

mheap avatar mheap commented on June 3, 2024

I've uploaded the project to https://github.com/mheap/nexmo-laravel-test

You'll need to copy .env.example to .env and add your Nexmo credentials. You'll also have to change to/from in UsersController

from nexmo-laravel.

segunmicheal27 avatar segunmicheal27 commented on June 3, 2024

i am getting error Non White-listed Destination - rejected

from nexmo-laravel.

mheap avatar mheap commented on June 3, 2024

@segunmicheal27 Are you sending a message your own phone number that you provided to Nexmo to test?

from nexmo-laravel.

segunmicheal27 avatar segunmicheal27 commented on June 3, 2024

yes

from nexmo-laravel.

mheap avatar mheap commented on June 3, 2024

@segunmicheal27 To confirm, have you followed these instructions? https://help.nexmo.com/hc/en-us/articles/204014853-Nexmo-trial-period-How-to-add-numbers-to-list-of-permitted-destinations-

from nexmo-laravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.