Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twilio problem #13

Open
Animion opened this issue Oct 27, 2015 · 12 comments
Open

Twilio problem #13

Animion opened this issue Oct 27, 2015 · 12 comments

Comments

@Animion
Copy link

Animion commented Oct 27, 2015

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)

@hazourano
Copy link

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

@glrodasz
Copy link

I think is related with this others comments. #7 Something is wrong, and will be nice a more descriptive error, because if you try to put a console log just show undefined.

@veeramarni
Copy link
Contributor

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

@okland
Copy link
Owner

okland commented Dec 18, 2015

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

@veeramarni
Copy link
Contributor

@okland added my changes, please check the diff

@beeekind
Copy link

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

@tixastronauta
Copy link

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

@veeramarni
Copy link
Contributor

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;
}
};

@ChenLi0830
Copy link

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;
            }
        };

@tixastronauta
Copy link

Thanks a lot @veeramarni! It worked perfectly 👍

@vohtaski
Copy link

vohtaski commented Apr 3, 2016

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

@atulmy
Copy link

atulmy commented Apr 14, 2016

Our saviour @veeramarni! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants