Hi! I’m having a new error in a backend function I have since many months ago. I have stopped receiving notifications, and right now I’m checking the code and found that when I call this “wixCrm.notifications.notify” it came with a bunch of errors displayed on the console log. My function is:
import wixCrm from ‘wix-crm-backend’ ;
export function notifyNewSignature(pTitle,pDesc,pActionTitle,pURL,pRole) {
wixCrm.notifications.notify(
pDesc,
[ “Browser” , “Dashboard” , “Mobile” ],
{
“title” : pTitle,
“actionTitle” : pActionTitle,
“actionTarget” : { “url” : pURL},
“recipients” : { “role” : pRole} //“Owner” “All_Contributors”
}
);
[//console.log(“Backend: NotificarMessage enviado”)](//console.log(“Backend: NotificarMessage enviado”)
})
[}](//console.log(“Backend: NotificarMessage enviado”)
})
The errors I’m getting are these (displayed on Console Log):
Unhandled rejection TypeError: logger.debug is not a function at /dynamic-modules/edm_root/3d049220-22ca-11eb-b9ec-a16ccc5e7368/node_modules/@wix/wix-crm-backend/src/notifications/api.ts:26:10 at Generator.next () at /dynamic-modules/edm_root/3d049220-22ca-11eb-b9ec-a16ccc5e7368/node_modules/@wix/wix-crm-backend/dist/src/notifications/api.js:8:71 at Promise._execute (/elementory/node_modules/bluebird/js/release/debuggability.js:384:9) at Promise._resolveFromExecutor (/elementory/node_modules/bluebird/js/release/promise.js:518:18) at new Promise (/elementory/node_modules/bluebird/js/release/promise.js:103:10) at __awaiter (/dynamic-modules/edm_root/3d049220-22ca-11eb-b9ec-a16ccc5e7368/node_modules/@wix/wix-crm-backend/dist/src/notifications/api.js:4:12) at Object.exports.notify (/dynamic-modules/edm_root/3d049220-22ca-11eb-b9ec-a16ccc5e7368/node_modules/@wix/wix-crm-backend/src/notifications/api.ts:25:5) at notifyNewSignature (/user-code/backend/notifications.jsw:4:24) at webMethodWrapper (/elementory/src/js-server-side/web-module-extension.js:39:33) at /elementory/node_modules/wix-error-boundaries/dist/index.js:11:23 at FunctionExecutor._run (/elementory/node_modules/@wix/cloud-runtime-core/lib/processors/AbstractFunctionExecutor.js:18:26) at FunctionExecutor._execute (/elementory/node_modules/@wix/cloud-runtime-core/lib/processors/FunctionExecutor.js:21:45) at /elementory/node_modules/@wix/cloud-runtime-core/lib/processors/AbstractFunctionExecutor.js:11:12 at /elementory/node_modules/@wix/cloud-monitoring-js/index.js:298:22 at FunctionExecutor.execute (/elementory/node_modules/@wix/cloud-runtime-core/lib/processors/AbstractFunctionExecutor.js:10:85) at /elementory/node_modules/@wix/cloud-runtime-core/lib/RuntimeProcessor.js:54:34 at /elementory/node_modules/@wix/cloud-monitoring-js/index.js:298:22 at /elementory/node_modules/@wix/cloud-runtime-core/lib/RuntimeProcessor.js:53:64 at RuntimeEnvironment.withEnv (/elementory/node_modules/@wix/cloud-runtime-core/lib/RuntimeEnvironment.js:23:28) at RuntimeProcessor.process (/elementory/node_modules/@wix/cloud-runtime-core/lib/RuntimeProcessor.js:35:31) at handler (/elementory/src/handlers/web-methods/index.js:74:8) at Layer.handle [as handle_request] (/elementory/node_modules/express/lib/router/layer.js:95:5) at next (/elementory/node_modules/express/lib/router/route.js:137:13) at webMethodRouteValidator (/elementory/src/handlers/web-methods/index.js:39:14) at Layer.handle [as handle_request] (/elementory/node_modules/express/lib/router/layer.js:95:5) at next (/elementory/node_modules/express/lib/router/route.js:137:13) at Route.dispatch (/elementory/node_modules/express/lib/router/route.js:112:3) at Layer.handle [as handle_request] (/elementory/node_modules/express/lib/router/layer.js:95:5) at /elementory/node_modules/express/lib/router/index.js:281:22 at param (/elementory/node_modules/express/lib/router/index.js:354:14) at param (/elementory/node_modules/express/lib/router/index.js:365:14) at param (/elementory/node_modules/express/lib/router/index.js:365:14) at param (/elementory/node_modules/express/lib/router/index.js:365:14)