question

Edmund Adjei avatar image
Edmund Adjei asked Edmund Adjei answered

Trouble creating webook in node

I followed the steps in https://developers.ringcentral.com/guide/notifications/webhooks/quick-start to create webhook-notification.js but when I run the resulting file, it fails with MODULE_FOUND


~/ringcentral $ node ./webhook-notification.js 
internal/modules/cjs/loader.js:888
  throw err;
  ^

Error: Cannot find module '@ringcentral/sdk'
Require stack:
- /home/x/ringcentral/webhook-notification.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
    at Function.Module._load (internal/modules/cjs/loader.js:730:27)
    at Module.require (internal/modules/cjs/loader.js:957:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/home/x/ringcentral/webhook-notification.js:2:21)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/x/ringcentral/webhook-notification.js' ]
}


I'm new to node.js so if there is a trivial error in the example code, I might have missed it.



webhooks
1 |3000

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

I think it is not RingCentral issue.. this issue is related to node.js.. may be installation issue.

ref: https://discuss.codecademy.com/t/module-not-found/601265

1 |3000

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

Edmund Adjei avatar image
Edmund Adjei answered

Thanks Anirban, I switched to the Python example making a little more progress

1 |3000

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

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