Incorrect account information when resetting password for Production app

  • 1
  • Problem
  • Updated 3 months ago
Finally, I was able to publish my app to Production. However how many times I tried, I got the same error "Incorrect account information." when Resetting Password.

My sandbox app is working as expected. I also tried using current RingCentral password of production account which I always used to sign into https://service.ringcentral.com but then got an error when requesting a token

{
  "error" : "invalid_grant",
  "error_description" : "Invalid resource owner credentials",
  "errors" : [ {
    "errorCode" : "OAU-140",
    "message" : "Invalid resource owner credentials"
  } ]
}

Photo of Thuy Nguyen

Thuy Nguyen

  • 184 Points 100 badge 2x thumb
  • frustrated

Posted 3 months ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,918 Points 5k badge 2x thumb
Hi Thuy,

Please note that you can not use sandbox account for production or vice versa.  It seems that you are aware of this.

"Invalid resource owner credentials" means username or password is wrong.  In theory, as long as you can login https://service.ringcentral.com , you should also be able to get a token.

Could you please show me how did you try to request a token? Show me some sample code (do NOT post your password here).

Tyler
(Edited)
Photo of Thuy Nguyen

Thuy Nguyen

  • 184 Points 100 badge 2x thumb
Hi Long,

Yes, sandbox account and production account are different. I clicked on Reset Password of the Production one and I was not able to reset password with error  "Incorrect account information."



I used password flow to get a toke and was able to request a token using sandbox account. Following is the code to request a token (I used RestSharp)

 var client = new RestClient("https://platform.ringcentral.com");
            client.Authenticator = new HttpBasicAuthenticator("production-app-id", "production-app-secret");
            var request = new RestRequest("/restapi/oauth/token", Method.POST);
            request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
            request.AddParameter("grant_type", "password");
            request.AddParameter("username", "+16xxxxxxx01");
            request.AddParameter("extension", "101");
            request.AddParameter("password", "production-password");
            var response = client.Post(request);


Photo of Tyler Long

Tyler Long, Official Rep

  • 6,028 Points 5k badge 2x thumb
Cannot reset password is definitely a bug of service.ringcentral.com. I have reported this bug to relevant team and they confirmed that it is a bug.
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,028 Points 5k badge 2x thumb
I am able to reset password by following the workarounds I posted above. Not sure why you got a blank screen.  Could you please send me the number you used to reset password? I'd like to have a try. Last by not least, it is a bug of service.ringcentral.com and will be fixed soon.
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,028 Points 5k badge 2x thumb
For "Invalid resource owner credentials" issue, as far as I can tell. it is caused by invalid username or password.

If you specify a direct number as username, please specify an empty extension number:  request.AddParameter("extension", ""). So could you please have a try?
Photo of Thuy Nguyen

Thuy Nguyen

  • 184 Points 100 badge 2x thumb
Hi Tyler,

Your suggestion worked like a charm :). Thanks!
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,028 Points 5k badge 2x thumb
You are welcome :)