question

Elliot Jackson avatar image
Elliot Jackson asked Phong Vu commented

Getting "Error: Invalid resource owner credentials at Client."

Following your install and run demo for SMS

Full error: Error: Invalid resource owner credentials at Client.<anonymous> (/home/pi/sms-api-nodejs-demo/node_modules/ringcentral/src/http/Client.js:62:38)

Here's my .env....


# The Client ID of the app
RINGCENTRAL_CLIENT_ID= FhF_xxxxxxxxxxxx_FnxQ

# The Client Secret of the app
RINGCENTRAL_CLIENT_SECRET= JxI3xxxxxxxxxxxxxxx4_Fw

# The phone number used by the developer when logging into RingCentral. This number will be
# different in sandbox and production. This is also the sender of the message.
RINGCENTRAL_USERNAME= +12094250842

# The extension used by the developer when logging into RingCentral. This is only necessary if
# the username/sender above is the company phone number.
RINGCENTRAL_EXTENSION= 101

# The password used by the developer when logging into RingCentral
RINGCENTRAL_PASSWORD= Axxxxxxxxxxxx

# The phone number of the recipient
RECIPIENT_PHONE_NUMBER= 07801670386

# The base URL for call API calls
# Sandbox
RINGCENTRAL_SERVER_URL=https://platform.devtest.ringcentral.com
# Production
#RINGCENTRAL_SERVER_URL=https://platform.ringcentral.com

I'm new to RingCentral so will greatly appreciate your assist...

EJ




getting started
1 |3000

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 Phong Vu commented

There are so many questions like this and it all turned out that developers used wrong login credentials. Could you make a search on this forum to get some hints or double check your app and login credentials

2 comments
1 |3000

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

Elliot Jackson avatar image Elliot Jackson commented ·

I've triple checked credentials....and I'm using your sample send-sms.js.... can you see anything anomalous in the .env above?

0 Likes 0 ·
Phong Vu avatar image Phong Vu ♦♦ Elliot Jackson commented ·

So you are on sandbox, can you login your sandbox account at https://service.devtest.ringcentral.com with the user's login credentials below? I assumed that the user is your sandbox user.

RINGCENTRAL_USERNAME= +12094250842

# The extension used by the developer when logging into RingCentral. This is only necessary if
# the username/sender above is the company phone number.
RINGCENTRAL_EXTENSION= 101

# The password used by the developer when logging into RingCentral
RINGCENTRAL_PASSWORD= Axxxxxxxxxxxx

0 Likes 0 ·
Elliot Jackson avatar image
Elliot Jackson answered

Tried to login to Sandbox account....

Took a looooong time to be forwarded to the site....

Entered the details but couldn't log in using the credentials I have so I requested a new password..

I'm waiting for the server to send the password reset link....

It's been 2hrs now!

1 |3000

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

Elliot Jackson avatar image
Elliot Jackson answered Phong Vu commented

Nope - can't log in to sandbox even with the new password!!

3 comments
1 |3000

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 ♦♦ commented ·

So don't expect to login with your app. You see, the problem has been purely your wrong username and password. Solve that before trying to log in your app with the same credentials.

You can login your RingCentral developer portal (remember this is different login credentials than your sandbox), then select he Sandbox Accounts and click the icon on the right site (go online) to open your sandbox account. But you still need to reset your account password if you don't remember it.

1 Like 1 ·
Elliot Jackson avatar image Elliot Jackson Phong Vu ♦♦ commented ·

Getting further - I've got this message...

Error: International SMS is not available for account at Client.<anonymous> (/home/pi/sms-api-nodejs-demo/node_modules/ringcentral/src/http/Client.js:62:38) at processTicksAndRejections (node:internal/process/task_queues:94:5)


So what do I need to send SMS in the UK?


0 Likes 0 ·
Phong Vu avatar image Phong Vu ♦♦ Elliot Jackson commented ·

Sandbox or production? No support for sandbox and for production, it can to be enabled by an account admin.

0 Likes 0 ·

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