-
Notifications
You must be signed in to change notification settings - Fork 52
nexmo insight:standard throws exception with SMS Shortcode #43
Comments
@leggetter as I don't have a shortnumber, can you run with |
Also does the API support this? |
@cbetta - Will DM you the number. |
@leggetter the number is in the debug... |
@leggetter Were you trying to run number insight against an SMS shortcode? (eg 89101) These type of numbers are country and sometimes even carrier specific so aren't really 'phone numbers' in the sense of the e.164 numbering plan. Also FYI LVN's are a term for the e.164 numbers that Nexmo sells for Voice and or SMS |
It wasn't a short code. |
Ok this looks to be a bug with the nexmo-node library when making a request for an invalid number to the insight standard API it works when requesting insight basic (although exposing the error could be better) BASIC:
STANDARD:
|
So having discussed this with @cbetta its not a nexmo-node issue its the CLI not handling the error nicely, so this needs to be fixed in the CLI. If it seens a status other than 0 returned it should print the contents of the status_message to the screen, this should work in both normal and verbose modes |
Steps to reproduce
Expected behavior
I would not expect an exception.
Actual behavior
As above, we get an exception logged to the console.
System configuration
Node version: v5.7.1
NPM version: 3.6.0
Operating system: OSX 10.11.4
The text was updated successfully, but these errors were encountered: