ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

Twilio - Unable to Invoke Service SendSMSMessage on twilio-connector_TH : null

Abhishek_Tirkey
14-Alexandrite

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 -

Abhishek_Tirkey_0-1737614178634.png

 

Abhishek Tirkey
15 REPLIES 15

Hello @Abhishek_Tirkey 

 

You can refer the following guide to assist you further

https://support.ptc.com/help/thingworx/platform/r9.6/en/index.html#page/ThingWorx/Help/Extensibility/Twilio.html

 

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

Log Message
ErrorCode(3b19949e-a7bc-45ae-92a4-18bc6a813ee1), Cause(null), Reason(Access was attempted on a null reference variable.), Possible Resolutions(Remove the reference to the null variable within your extension code.)

Abhishek Tirkey

@Abhishek_Tirkey 

Can you please share error from error log file from thingworx storage folder if possible?

 

Thanks

I have attached a ErrorLog file for the reference.

Abhishek Tirkey

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.

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

Abhishek_Tirkey
14-Alexandrite
(To:PEHOWE)

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

Abhishek_Tirkey_0-1738815127693.png

Abhishek_Tirkey_2-1738815476255.png

 



While trying to send test message I was not able to send it. Shows an error output 

Abhishek_Tirkey_1-1738815315286.png

 

 

 

Abhishek Tirkey

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

Abhishek_Tirkey
14-Alexandrite
(To:PEHOWE)

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

Abhishek Tirkey

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
 

Abhishek_Tirkey
14-Alexandrite
(To:PEHOWE)

Hi, @PEHOWE , I am using with Administrator group.
Anyhow I am getting the same error - Unable to Invoke Service SendSMSMessage on twilio_TH : null

 

Abhishek_Tirkey_0-1739937028085.pngAbhishek_Tirkey_1-1739937067503.pngAbhishek_Tirkey_2-1739937086036.png

 

Abhishek Tirkey

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

Abhishek_Tirkey
14-Alexandrite
(To:PEHOWE)

Hi @PEHOWE yeah, I have reviewed the IQNOX
I have not able to resolve the issue yet.

 

Abhishek Tirkey

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

Announcements




Top Tags