Getting this error when I try to download an attachment: Error: Sandbox client is not allowed: xxxxxx. This is our clientId for the sandbox for Fax340b application. Exact scenario is : 1) Received Inbound Fax Event notification. 2) Successfully login into account 3) call get call it is failing with this error. 4) the login info is same as used to subscribe to the incoming fax event. Code snippet below: Followed by call stack.
async function getMessageContent(platform:any, uri:string) {
try {
------error and stack---------
(node:70196) UnhandledPromiseRejectionWarning: Error: Sandbox client is not allowed: KTHkwJaQRUiu6es5YR5lOw [2021-11-03T16:57:55.109Z] at Client.<anonymous> (/Users/ajaywadhawan/dev/ch/coach-infrastructure/AzureFunctions/node_modules/@ringcentral/sdk/lib/http/Client.js:115:35) [2021-11-03T16:57:55.109Z] at step (/Users/ajaywadhawan/dev/ch/coach-infrastructure/AzureFunctions/node_modules/@ringcentral/sdk/lib/http/Client.js:56:23) [2021-11-03T16:57:55.110Z] at Object.next (/Users/ajaywadhawan/dev/ch/coach-infrastructure/AzureFunctions/node_modules/@ringcentral/sdk/lib/http/Client.js:37:53) [2021-11-03T16:57:55.110Z] at fulfilled (/Users/ajaywadhawan/dev/ch/coach-infrastructure/AzureFunctions/node_modules/@ringcentral/sdk/lib/http/Client.js:28:58) [2021-11-03T16:57:55.110Z] at processTicksAndRejections (internal/process/task_queues.js:93:5)