accounts-phone icon indicating copy to clipboard operation
accounts-phone copied to clipboard

Twilio problem

Open Animion opened this issue 8 years ago • 12 comments

I know there's closed issue with this symptoms, but my SID is correct and there's stil an error:

I20151027-06:46:27.155(1)? Exception in callback of async function: Error: [object Object] [Error sending SMS ] I20151027-06:46:27.157(1)? at packages/okland_accounts-phone/packages/okland_accounts-phone.js:81:1 I20151027-06:46:27.157(1)? at runWithEnvironment (packages/meteor/dynamics_nodejs.js:110:1)

Animion avatar Oct 27 '15 09:10 Animion

i have the same issue. i am following whatsapp clone tutorial. i tried replacing the credential with valid sid and token . tried creating settings.json and also include the credential in sms.js

hazourano avatar Oct 27 '15 10:10 hazourano

I think is related with this others comments. https://github.com/okland/accounts-phone/issues/7 Something is wrong, and will be nice a more descriptive error, because if you try to put a console log just show undefined.

glrodasz avatar Oct 30 '15 16:10 glrodasz

I have forked this repo and fixed this issue. Checkout veeramarni:accounts-phone. @okland let me know if i can push the changes.

veeramarni avatar Dec 18 '15 21:12 veeramarni

@veeramarni I added you as a collaborator to this project so you can push the changes, if they fix the problems :).

okland avatar Dec 18 '15 22:12 okland

@okland added my changes, please check the diff

veeramarni avatar Dec 18 '15 22:12 veeramarni

Was this issue ever resolved? I'm getting the same error, also via the tutorial for building a whatsapp clone for meteor + ionic.

beeekind avatar Jan 22 '16 06:01 beeekind

I'm having the same problem. @veeramarni can you please explain how can I use your package?

tixastronauta avatar Feb 29 '16 10:02 tixastronauta

By adding template with working twilio number and it should work (don't have to use mine).

By default it uses +9729999999 and it fails with an twilio error. SMS.phoneTemplates = { from: '+9729999999', text: function (user, code) { return 'Welcome your invitation code is: ' + code; } };

veeramarni avatar Feb 29 '16 21:02 veeramarni

Thanks @veeramarni , it worked for me!

To be more specific, I put the SMS.phoneTemplates code block in Meteor.startup like this:

Meteor.startup(function () {
        SMS.twilio = {
            FROM: 'yourNumber',
            ACCOUNT_SID: 'yourSID',
            AUTH_TOKEN: 'yourToken'
        };
        SMS.phoneTemplates = {
            from: 'yourNumber',
            text: function (user, code) {
                return 'Welcome your invitation code is: ' + code;
            }
        };

ChenLi0830 avatar Mar 01 '16 22:03 ChenLi0830

Thanks a lot @veeramarni! It worked perfectly :+1:

tixastronauta avatar Mar 02 '16 17:03 tixastronauta

same problem here, is it possible to do a new release with this change please

vohtaski avatar Apr 03 '16 16:04 vohtaski

Our saviour @veeramarni! :+1:

atulmy avatar Apr 14 '16 12:04 atulmy