Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9220231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:17:58+00:00 2026-06-18T03:17:58+00:00

I have everything working locally, but when I test Twilio’s service on an Amazon

  • 0

I have everything working locally, but when I test Twilio’s service on an Amazon EC2 Debian 6.0.6 server running Mono 2.10.9, I find that sending SMS messages no longer works. I believe the problem lies somewhere in the server configuration, as I am using the latest Twilio (3.5.6), RestSharp (104.1) and JSON.NET (4.5.11) libraries, and I can guarantee that the variables used in the following method call are not empty at runtime.

var client = new Twilio.TwilioRestClient("{my account number}", "{my account token}");
var smsMessage = client.SendSmsMessage("{my account phone number}", "{my mobile phone number}", "Hello World!");

Using ntop, I have seen that there are bytes being sent/received to/form this reqeuest, but the smsMessage result is still null. The SendSMSMessage function utilizes the RestSharp library, particularly the RestClient’s Execute function, which invokes a Deserialize method and returns an IRestResponse in which the Data field is null in this case.

I have seen some indications online that the problem may lie in the deserialization process, but, as I’ve ensured I am using the latest version of JSON.NET, I am not sure what other steps to take here.

Do you have any suggestions on resolving the problem and do you suspect it is a code or server issue? Also do you have any advice, using Debian, how I might further debug this interaction, perhaps even to get the full byte response externally from the application?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:18:00+00:00Added an answer on June 18, 2026 at 3:18 am

    In debugging the RestSharp library, I discovered that the exception had to do with SSL and Mono’s trusted certificates. The exception message I received is as follows:

    Error getting response stream (Write: The authentication or decryption has failed.): SendFailure
    

    Following the instructions in the link below helped me to resolve the issue, particularly by
    executing the following and restarting mono.

    certmgr -ssl https://api.twilio.com
    

    http://www.mono-project.com/FAQ:_Security

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a small HTTP server and everything is working fine locally, but
I have a problem with Yii framework, everything was working locally jz fine but
I have everything working locally with php_value include_path C:/wamp/www/project in my htaccess file, but
I have wrote a custom MultipleChoiceField. I have everything working ok but when I
I have a bunch of self-hosted WCF services. Everything's working fine but I'm look
I'm running my staging server locally using: RAILS_ENV=staging rails console -p 1337 I have
I am working on some form coding in PHP, and I have everything working
I am currently implementing a ListView populated with CheckedTextViews and have everything working just
people. I have slight problem with GD2 text on image. I have everything working
I'm following the Django-CMS introductory tutorial and have got everything working up to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.