Problem with Vonage Plugin from Marketplace

Vonage Plugin from Marketplace

Hi, we have an existing relationship and API Access for Vonage.
I have tried to configure SMS using the published Vonage Provider and have added this provider to the “Send Phone Message” action.
https://marketplace.auth0.com/integrations/vonage-sms-provider

When I configure “phone MFA” It fails with an error as follows.
Could you point us in the right direction please ?

  "type": "gd_send_sms_failure",
  "description": "Guardian - TypeError on send-phone-message-hook: Cannot read property '_sendMessage' of undefined",
  "ip": "165.225.17.96",
  "user_agent": "Chrome 114.0.0 / Windows 10.0.0",
  "details": {
    "request": {
      "method": "POST",
      "path": "/api/sms/configs/test-nadex/authenticators/sms
.....

  "type": "gd_send_sms_failure",
  "description": "Guardian - TypeError on send-phone-message-hook: Cannot read property '_sendMessage' of undefined",
  "ip": "165.225.17.96",
  "user_agent": "Chrome 114.0.0 / Windows 10.0.0",
  "details": {
    "request": {
      "method": "POST",
      "path": "/api/sms/configs/test-nadex/authenticators/sms

{
  "date": "2023-07-18T13:52:26.826Z",
  "type": "gd_send_sms_failure",
  "description": "Guardian - TypeError on send-phone-message-hook: Cannot read property '_sendMessage' of undefined",

Also with error 

{
  "action_name": "Vonage v2",
  "response": {
    "error": {
      "message": "Cannot read property '_sendMessage' of undefined",
      "name": "TypeError",
      "stack": "TypeError: Cannot read property '_sendMessage' of undefined\n    at sendSms (/data/layers/layers-tViT/tViTx18uYKVgyi54DwugG1WRZCZrwCUkLW5NPqNkJeg/node_modules/@vonage/server-sdk/lib/Message.js:105:12)\n    at internal/util.js:297:30\n    at new Promise (<anonymous>)\n    at sendSms (internal/util.js:296:12)\n    at exports.onExecuteSendPhoneMessage (/data/io/node12/12502e4e-8908-47fd-a9c9-ba0b12b788a6/webtask.js:15:30)\n    at /data/io/934c79713de2762e4546b60d91796a0d06797ac5.js:5:890\n    at processTicksAndRejections (internal/process/task_queues.js:97:5)"
    },
    "stats": {
      "total_request_duration_ms": 642,
      "total_runtime_execution_duration_ms": 639,
      "runtime_processing_duration_ms": 324,
      "action_duration_ms": 145,
      "runtime_external_call_duration_ms": 170,
      "boot_duration_ms": 494,
      "network_duration_ms": 3
    }
  },
  "error": {
    "id": "invalid_argument",
    "msg": "Invalid Argument"
  },
  "started_at": "2023-07-18T13:52:26.175867565Z",
  "ended_at": "2023-07-18T13:52:26.818759985Z"
}

Hi @david-gibbs-ig ,

Errors refer to the @vonage/server-sdk which has had a version update.

Based on the Vonage provider’s doc (which covers the migration guideline):

The Node SDK v3.x uses Promises instead of callbacks. Customers need to convert their callbacks to work with the responses returned from the calls.

Hope this helps, please let us know how it goes / if we can assist you further. Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.