question

george-shih avatar image
george-shih asked ·

"Invalid resource owner credentials" PHP

I'm just trying to do this:
require('../vendor/autoload.php');  $sdk = new RingCentral\SDK\SDK('******', '*******', RingCentral\SDK\SDK::SERVER_SANDBOX);  $sdk->platform()->login('16079303113', '', '********');  

But am getting this error:

Fatal error: Uncaught Exception: Response has unsuccessful status in /var/www/html/vendor/ringcentral/ringcentral-php/src/Http/ Client.php:43 Stack trace: #0 /var/www/html/vendor/ringcentral/ringcentral-php/src/Platform/ Platform.php(276): RingCentral\SDK\Http\Client->send(Object(GuzzleHttp\Psr7\Request)) #1 /var/www/html/vendor/ringcentral/ringcentral-php/src/Platform/ Platform.php(363): RingCentral\SDK\Platform\Platform->sendRequest(Object(GuzzleHttp\Psr7\Request), Array) #2 /var/www/html/vendor/ringcentral/ringcentral-php/src/Platform/ Platform.php(183): RingCentral\SDK\Platform\Platform->requestToken('/restapi/oauth/...', Array) #3 /var/www/html/ajax/ fax_prescriptions.php(7): RingCentral\SDK\Platform\Platform->login(Array, '', '******') #4 {main} Next RingCentral\SDK\Http\ApiException: Invalid resource owner credentials in /var/www/html/vendor/ringcentral/ringcentral-php/src/Http/ Client.php:54 Stack trace: #0 /var/www/html/vendor/ringcentral/ringcentral-php/src/Platform/ Platform.php(276): RingCentral\SDK\Http\Client->s in  /var/www/html/vendor/ringcentral/ringcentral-php/src/Http/Client.php on line  54


I have double and triple checked the password.
topic-default
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.

ak avatar image
ak answered ·
George,

Have you been able to Login successfully into Sandbox Service web with the same credentials:
https://service.devtest.ringcentral.com

It looks like your sandbox account has not been activated by the email which you would receive initially. Could you confirm the same for me, please?
Share
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.

george-shih avatar image
george-shih answered ·
Ah. Thank you! Didn't notice the activation email.
Share
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.

george-shih avatar image
george-shih answered ·
Is there a way to resend activation?
Share
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.

ak avatar image
ak answered ·
I have resent the activation email to the one tied to the developer account. 
Share
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.

raffaello-galli avatar image
raffaello-galli answered ·
I need the activation email to be resent for my account. Is it possible? Thanks in advance.
Share
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.

ak avatar image
ak answered ·
You can resend the activation email by logging into Developer Portal and click on the Top Right Profile Image -> Sandbox Accounts 

If you do not find an option, kindly provide the name of your Organization or the Main OCmpany Number on Developer Portal and I could re-send the activation email for your sandbox account. 
Share
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.

lonnie-ezell avatar image
lonnie-ezell answered ·
I'm having a similar problem. There's no link to re-send Activation email. When I click the Activation link in the email I received, it says I've already been activated, but if I try to login at  https://service.devtest.ringcentral.com it says I need to be activated, so I seem to be caught in a loop.

My organization name is TestMe DNA. How do I get this resolved so that I can get back to building? 
Share
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.

ak avatar image
ak answered ·
Hi Lonnie,

Your Sandbox account should be activated now. Can you login again please?


1 comment Share
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.

That did it. Thanks so much! Fixed on the first try. Much better experience than what I've been having with USPS support. Keep up the great work!
0 Likes 0 · ·
lee avatar image
lee answered ·
FYI.

I was having the same problem and looked on our Barracuda email security and the email sent was blocked due to bad PTR.
3 comments Share
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.

Lee,

Could you provide the Org name on the Developer Portal and we can take a look to see if the Sandbox Account has been activated already 

Can you provide the Baracuda Logs via support ticket? You can open a support case using one of our support channels:
https://developer.ringcentral.com/support.html

or you can send us an email to devsupport@ringcentral.com with the necessary logs.
0 Likes 0 · ·
It wasn't activated as I didn't receive the email. ;) 

After I pushed the email to me I activated fine and all is well.

Was just posting so you guys know there might be an issue with your SPF (sorry not PTR) for the server sending those emails.

Looking on my Barracuda Cloud Email Security there are other emails not being received due to "Bulk Email".. I've white listed so not a problem for me now but it's probably that " getsatisfaction.com" domain causing the problem.
0 Likes 0 · ·
Received-SPF: fail (mx1410.ess.rzc.cudaops.com: domain of account-activation@ringcentral.com does not designate 192.209.29.142 as permitted sender)

is the error on that one email i saw.
0 Likes 0 · ·

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.