SMS通过Web API仅发送2个SMS n显示超时错误 [英] SMS through web API only sending 2 SMS n showing timeout error
问题描述
编写一个Windows应用程序来读取for循环中的MySql数据库表,我正在尝试使用服务提供商提供的Web API向我们的成员发送SMS。
发送前2条短信和手机的程序正在接收消息。从第3行开始,我收到异常错误System.Net.WebException:操作已在Ssytem.Net.WebClient.OpenRead(字符串地址)中的System.Net.WebClient.OpenReead(Uri地址)超时.. ......
我预计会发送超过1000条短信。
请有人给我一个解决方案。请注意,服务提供商无法帮助我。
问候并提前致谢
Yuvaraj
yuva2405@gmail.com
我尝试了什么:
更改了MySQl表行中的电话号码。它仍然是通过短信发送前2行信息。我接到电话了。也来自表
Written a windows application to read a MySql database table within for loop, I am trying to send SMSs to our members using web API supplied by the service provider.
The program sending the first 2 SMS and also phones are receiving the message. From the 3rd row, I am getting an exception error "System.Net.WebException: The operation has timed out at System.Net.WebClient.OpenReead(Uri address) at Ssytem.Net.WebClient.OpenRead(string address) in....."
I am expected to send more than 1000 SMSs.
Please anybody give me a solution for this. Note that the service provider is not in the position to help me.
Regards and advance thanks
Yuvaraj
yuva2405@gmail.com
What I have tried:
Changed the phone nos in the rows of MySQl table. Still it is sending the first 2 rows information through SMS. I am getting the phone no. also from the table
推荐答案
如果他们无法帮助你那么你需要建立一些延迟。\\ retries。所以如果你得到那个例外,可能需要三秒钟再试一次。我怀疑这是服务的问题,所以你不要用它来快速垃圾邮件数量。
If they can't help you then you need to build in some delays\retries. So if you get that exception wait maybe three seconds and try again. I suspect this is as issue with the service though so you don't use it to quickly spam loads of numbers.
这篇关于SMS通过Web API仅发送2个SMS n显示超时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!