question

Super AdmiI User avatar image
Super AdmiI User asked ·

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?

apiapp403
1 |1000 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 |1000 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 ·

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 |1000 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 |1000 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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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