Coder Social home page Coder Social logo

sms error 411 about vonage-node-sdk HOT 9 CLOSED

vonage avatar vonage commented on May 28, 2024
sms error 411

from vonage-node-sdk.

Comments (9)

cbetta avatar cbetta commented on May 28, 2024

@lulucious can you share the exact code you are running so we can try and replicate?

from vonage-node-sdk.

derhyl avatar derhyl commented on May 28, 2024
    nexmo.message.sendSms sender, recipient, message, {}, (err,nexmoRes)->
        console.log err
        console.log "-"
        console.log nexmoRes

from vonage-node-sdk.

cbetta avatar cbetta commented on May 28, 2024

@lulucious mind fleshing this out a bit more? I need some code I can run as is, so I need to know what sender and message are.

from vonage-node-sdk.

derhyl avatar derhyl commented on May 28, 2024

i tried with string values and got the same error msg : sender:"hello" , recipient:"33622222222", message:"hello"... I know it sounds basic but it's not working!
Works perfectly with request...

from vonage-node-sdk.

cbetta avatar cbetta commented on May 28, 2024

@lulucious what happens if you just do:

nexmo.message.sendSms "lulucious", "33622222222", "Hello World"

??

from vonage-node-sdk.

cbetta avatar cbetta commented on May 28, 2024

@lulucious just tried this and it works fine:

Nexmo = require('nexmo')

nexmo = new Nexmo({apiKey: 'your_api_key', apiSecret: 'your_secret'})

nexmo.message.sendSms "lulucious", "your_number", "Hello World"

from vonage-node-sdk.

leggetter avatar leggetter commented on May 28, 2024

If the TO number is a non UK number e.g. a US number then the FROM value
must be a Nexmo virtual number for your account.

from vonage-node-sdk.

cbetta avatar cbetta commented on May 28, 2024

@leggetter thanks for reminding me. Still works fine for me though:

Nexmo = require('nexmo')

nexmo = new Nexmo({apiKey: 'key', apiSecret: 'secret'}, {debug: true})

nexmo.message.sendSms "my_number", "33622222222", "Hello World", (err, res) ->
  console.log(res)

returns

{ 'message-count': '1',
  messages: 
   [ { to: '33622222222',
       'message-id': '070000000F6411EA',
       status: '0',
       'remaining-balance': '12.33580000',
       'message-price': '0.05940000',
       network: '20810' } ] }

from vonage-node-sdk.

cbetta avatar cbetta commented on May 28, 2024

Closing due to inactivity

from vonage-node-sdk.

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.