question

Super AdmiI User avatar image
Super AdmiI User asked anon-user edited

403 error for APP in production

Our app works fine in Sandbox, however in Production it's throwing a 403 error. We're using the correct credentials for each environment, and have the phone numbers in E.164 format.

Any suggestions for steps that may also be needed to get approval on the app?

api403
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Anirban avatar image
Anirban answered

403 forbidden error occurs when the credentials are incorrect and authentication server reject the request. This is clearly a permission issue.

Please check again

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Super AdmiI User avatar image
Super AdmiI User answered Super AdmiI User edited

Hey, thanks for your answer. In our case no, because we are sure that the credentials ares fine, and we reset the password 2 times but we still can't login. We also tried from the reference API site and it returns 403. Actually from our script with the PHP SDK it returns this:

* Connection #0 to host platform.ringcentral.com left intact

Expected HTTP Error: Client error: `POST https://platform.ringcentral.com/restapi/oauth/token` resulted in a `400 Bad Request` response:

{

"error" : "invalid_grant",

"errors" : [ {

"errorCode" : "OAU-140",

"message" : "Invalid resource owner cre (truncated...)


This is from API reference site:

403 Forbidden

{ "errorCode": "FeatureNotAvailable", "message": "El número de teléfono no pertenece a la extensión", "errors": [ { "errorCode": "MSG-304", "message": "El número de teléfono no pertenece a la extensión" } ] }


Any ideas?

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image
Phong Vu answered

The error you got from using the PHP SDK is purely because of wrong login credentials or there is some special characters in the password that were not escaped and it caused the problem.

The error you got from the API reference means that you were trying to send SMS message from a phone number which does not belong to the extension you login the Dev portal. But at least it indicated that you were able to authenticated and call the API.

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys