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

Using Twilio Client the Text message sent to India Numbers is not delivered if the message length is more then 20 characters. #711

Open
sbkrishnan2506 opened this issue Nov 13, 2023 · 6 comments

Comments

@sbkrishnan2506
Copy link

Issue Summary

The Text message sent to India numbers are not delivered, if the message length is more that 20 characters using Twilio Client.
It was working fine till October 2023; it stopped working now.

Steps to Reproduce

  1. Try to send text message (more than 20 characters) to India number, It may work very first time and try again to the same number.
  2. There is no failure message
  3. If reduce the text length to 20 or less characters and try again.
  4. If the message length is less that 20 characters only it will deliver.

Code Snippet

string _accointSID = "AC2252XXXXXXXXXXXXXXXXXXXXXXXXX";
string _authToken = "bc1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXa";
string _fromNumber = "+185XXXXXXXX";

string _countryCode = "+91";
string _mobileNumber = "900XXXXXX";

string _textMessage = "Twilio test Your account";

TwilioClient.Init(_accointSID, _authToken);
var result = MessageResource.Create(body: _textMessage, from: new PhoneNumber(_fromNumber), to: new PhoneNumber(_countryCode + _mobileNumber));

Exception/Log

No excemption ```

paste exception/log here


### Technical details:
* twilio-csharp version: 6.15.0
* csharp version: visual studio 2022 with console application of web API.

@tiwarishubham635
Copy link
Contributor

Hi @sbkrishnan2506! I tried to reproduce this error but I am receiving the message every time. I even used an elongated message. It still delivers everything successfully. Can you check once again on your end?

@sbkrishnan2506
Copy link
Author

Hi Tiwarishubham635,
I tried again, I am getting the same issue,
If I send text message to India number with more than 20 characters, no error message but the message is not received by the end user.
If I send the text message with in 20 characters, then it will be delivered immediately.
Is it anything related to Twilio account?
Please suggest.

Thanks
Bala

@tiwarishubham635
Copy link
Contributor

Hi @sbkrishnan2506! I have rechecked on my side and it does not look like an issue on Twilio account side. I tried sending the message using this C# helper library on a mac with apple silicon (M1). I was able to receive the messages successfully. Can you share more details about your environment? Thanks!

@sbkrishnan2506
Copy link
Author

sbkrishnan2506 commented Nov 16, 2023

ConsoleAppTwilio - Copy.zip
Hi @tiwarishubham635,

I just attached the .Net console application, you can download and update your Twilio accountSid, Authtoken and from phone number and try to send text message to India mobile number from USA.

The message received if the text length is less than 20 characters.
The message is not received if the text length is more than 20 characters and there is no error message also.
I am using the Twilio 6.15.0 version.
Please check & let us know if you have any other workaround.

Thanks
Bala

@sbkrishnan2506
Copy link
Author

Hi @tiwarishubham635,

Any update on the above issue?

@tiwarishubham635
Copy link
Contributor

I have tried again but I am able to receive the messages, though it takes some time to deliver long messages. Is this still the issue with latest version?

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

2 participants