Hello,
In our migration from another provider to RingCentral SMS, we increased the flow of SMS traffic though our RingCentral A2P 10DLC number in the last 24 hours.
When we did so we started seeing an increase in error 401's in our batch calls. Additionally, we are seeing an increase in delivery error 429 on your RingCentral server (especially when our traffic is at its peak).
We had to take the action of decreasing the traffic we are sending to your server (moving back to the previous provider) until we determine how to best resolve this.
We are using the Java implementation. I note that we are not keeping the session open and furthermore, we are not batching the sends (1 message per batch). It is implemented this way following your code example AND migrating from another provider's basic flow of control that we use.
Please see an example of the error 401 below.
Please advise, are we hitting a bug in your service or are we misusing the API ?
2020-11-23 13:43:45,855 [error] Thread-541640 MessagingServiceImpl:64 RingCentral exception - com.envera.east.sms.notification.service.MessagingException: HTTP Response
=============
status code: 401
Server: nginx
Date: Mon, 23 Nov 2020 18:43:45 GMT
Content-Type: application/json
Content-Length: 175
Connection: keep-alive
WWW-Authenticate: Bearer realm="RingCentral REST API"
RCRequestId: d158ffb4-2dbb-11eb-860b-0050568dac6b
{
"errorCode" : "AGW-402",
"message" : "Invalid Authorization header",
"errors" : [ {
"errorCode" : "AGW-402",
"message" : "Invalid Authorization header"
} ]
}
HTTP Request
============
HTTP POST https://platform.ringcentral.com/restapi/v1.0/account/~/a2p-sms/batch
Authorization: Basic <Note: I deleted our token>
X-User-Agent: RC-JAVA-SDK Java 1.8.0_102 Windows Server 2012 R2
{"from":"19412634395"," <...deleted detail...>