Notifications not working

Hi I was working with wix crm backend notificatication and just stoped working.

See the code bellow

CRM Backend code

import wixCrm from 'wix-crm-backend';

export function notifySiteContributors(body, titulo, acao, url) {
 wixCrm.notifications.notify(
 body,
        ["Mobile", "Browser", "Dashboard"], {
 "title": titulo,
 "actionTitle": acao,
 "actionTarget": { "url": url },
 "recipients": { "role": "All_Contributors" }
    })
}

frontend code

import { notifySiteContributors } from 'backend/CRM';

export function botaofinalizar_click(event) {
 let itemObj = $w("#dataset3").getCurrentItem();
 let os = itemObj.title.replace('/', '%2F')
 let link = 'www.otimicar.com/respostas-cotacao-pecas-/' + os
 $w('#text217').show()
 notifySiteContributors(
 String('OS ' + $w('#osText').text + ' ' + $w('#text207').text + ' ' + $w('#text208').text + ' ' + $w('#text214').text),
 String('Cotação de peça respondida por ' + $w('#text223').text),
 'VEJA AGORA A RESPOSTA',
 link)
}

The error =>


Unhandled rejection Error: server responded with 400 - {"message":"","details":{}}     at handleServerError (/dynamic-modules/edm_root/2b595510-de9c-11e9-aaa2-279ac5c14f62/node_modules/@wix/wix-crm-backend/src/notifications/api.ts:162:11)     at Object.<anonymous> (/dynamic-modules/edm_root/2b595510-de9c-11e9-aaa2-279ac5c14f62/node_modules/@wix/wix-crm-backend/src/notifications/api.ts:109:9)     at Generator.throw (<anonymous>)     at rejected (/dynamic-modules/edm_root/2b595510-de9c-11e9-aaa2-279ac5c14f62/node_modules/@wix/wix-crm-backend/dist/src/notifications/api.js:5:65)     at bound (domain.js:396:14)     at runBound (domain.js:409:12)     at tryCatcher (/elementory/node_modules/bluebird/js/main/util.js:26:23)     at Promise._settlePromiseFromHandler (/elementory/node_modules/bluebird/js/main/promise.js:510:31)     at Promise._settlePromiseAt (/elementory/node_modules/bluebird/js/main/promise.js:584:18)     at Async._drainQueue (/elementory/node_modules/bluebird/js/main/async.js:128:12)     at Async._drainQueues (/elementory/node_modules/bluebird/js/main/async.js:133:10)     at Immediate.Async.drainQueues [as _onImmediate] (/elementory/node_modules/bluebird/js/main/async.js:15:14)     at runCallback (timers.js:705:18)     at tryOnImmediate (timers.js:676:5)     at processImmediate (timers.js:658:5)     at process.topLevelDomainCallback (domain.js:121:23)

1 Like

For me too.

My notifications tutorial site stopped working, and other sites with the Notifications API stopped working.

Zero notifications past Oct 3, 2019 for me / my sites / my client sites.

Anyone from Wix please?

happened again to anyone by any chance?
my working site suddenly stopped giving notifications 9 days ago