Twilio - Unable to Invoke Service SendSMSMessage on twilio-connector_TH : null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Twilio - Unable to Invoke Service SendSMSMessage on twilio-connector_TH : null
I was following this article -
https://community.ptc.com/t5/IoT-Tips/Send-Messages-with-Twilio/ta-p/834729
I have checked with the configuration and it is correct
During executing Twilio thing to send message I got this error -
- Labels:
-
Best Practices
-
Mashup-Widget
- Tags:
- twilio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Same issue - "Twilio SendSMS service issues": https://community.ptc.com/t5/ThingWorx-Developers/Twilio-SendSMS-service-issues/td-p/668767
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello @Abhishek_Tirkey
You can refer the following guide to assist you further
If you still face the issue i would suggest if you can change the logging level (Browse>>subsystem>>logging subsystem>>check enable stack trace option and save )and reproduce the issue and share error and script logs with us.
Note : please revert the logging once issue is reproduced
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Can you please share error from error log file from thingworx storage folder if possible?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have attached a ErrorLog file for the reference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello @Abhishek_Tirkey,
Thank you for using PTC Community!
You have a response on your topic, if you are in position to reply, please open your topic & click on "Reply" and add your comments/attach the log file.
If you already resolved your issue, please document the solution in this topic by replying to it and marking it as the accepted solution. This will surely help other users who may have a similar question.
Regards,
Vivek N
Community Moderation Team.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello @Abhishek_Tirkey ,
What version of the Extension are you using?
The Extension is now being maintained by IQNOX.
The error messages in the log which you provide indicate that the application keys are invalid.
You included a link to the steps which you followed. Were there any steps which caused error messages?
Where you able to get an AUTH TOKEN from Twilio? The values shown in the instructions are not valid values.
Did you get the congratulations message and a new Phone number?
What happened during the steps for the test message?
Regards,
Pehowe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
My ThingWorx version is - 9.3.10
Twilio Extension version is - 4.0.0
None of the steps gave error in the process.
I got AUTH TOKEN, ACCOUNT SID and a TWILIO PHONE NUMBER from Twilio and same I have entered in the Thing Configuration
While trying to send test message I was not able to send it. Shows an error output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello @Abhishek_Tirkey ,
I have loaded the Twilio Extension into an Thingworx environment. When I go to configuration, I see the same box's you show in your screen capture.
Just a general question when you entered the phone number you included the "+". I would not expect that to be required.
Have you checked the ThingWorx logs? (ApplicationLog.log, ScriptLog.log. ScriptErrorLog.log, and Errorlog.log)
Some of these can be examined through Composer but not all.
I find reviewing these files easer with an editor and accessing them from the server.
What ThingWorx account are you trying to test SendSMSMessage? If you not using an Administrator account you should check the permissions on the services.
Thanks
Pehowe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have tried using "+" as well as without "+".
I am using a Administrator account. I have checked with the logs and I have shared the log on the previous messages.But again i am getting this output - Unable to Invoke Service SendSMSMessage on twilio_TH : null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello @VladimirN , When you edit your THING, which uses The Base Thing Template "Twilio", What do you find when you look at the permissions tab?
There are 3 different groups of Permissions (Visibility, Run TIme, and Design Time)
If you are using an account which is in the Administrator group, you are configured to have full access. If you are in another group then you need permissions.
Let me know what you find
Pehowe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi, @PEHOWE , I am using with Administrator group.
Anyhow I am getting the same error - Unable to Invoke Service SendSMSMessage on twilio_TH : null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello @Abhishek_Tirkey , Because this Extension is no longer maintained by PTC have you reviewed the documentation at IQNOX
Have you been able to resolve the issue?
Regards,
Pehowe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello @Abhishek_Tirkey ,
Sorry to hear you hare having issues. I am looking at the information you provided.
In the Configuration Tab you need to provide a "CallerID", which is a valid Phone Number.
In the screen capture you have provided "+17433304211". The information in what you have provided is Country code (+1) followed by a 3 digit area code (743) followed by 7 digit subscriber number (3304211).
Have you tried changing the CallerID to exclude the Country Code information?
You did provide 3 lines of one log files, Did you check all the log files for messages related to Twilio?
I assume that the Thing you created was named "twilio_TH"
You have confirmed that your account is an Administrator Account. While that should provide full access to the environment.
Have you added your account to the Permissions Tab (Visibility, Run Time, Design Time, Ownership)
While I agree that this should not be necessary. The error message you provided "Unable to assign default permissions: null" makes me want to ensure that I know the permission is assigned.
If you make these updates and still are having issues. Please provide a full set of logs and I will review them for other information which might help.
Regards,
Pehowe
