Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit Failed because NotificationType doesn't exists #58

Open
Dawood-Ghaznavi opened this issue Aug 26, 2024 · 1 comment · May be fixed by #60
Open

Emit Failed because NotificationType doesn't exists #58

Dawood-Ghaznavi opened this issue Aug 26, 2024 · 1 comment · May be fixed by #60

Comments

@Dawood-Ghaznavi
Copy link

Gives the following error when you try to send a notification:
[notifications] - Sending notification of key: Default and version: 1 [persistent-outbox] - Emit failed { event: 'Default', cause: Error: NotificationType with key Default and version 1 does not exist at NotifyToRest.postNotification (/home/user/projects/Student/node_modules/@cap-js/notifications/srv/notifyToRest.js:35:21) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Promise.all (index 0) at async NotifyToRest.handle (/home/user/projects/Student/node_modules/@sap/cds/lib/srv/srv-dispatch.js:65:21) at async ODataRequest. (/home/user/projects/Student/node_modules/@sap/cds/libx/outbox/index.js:286:18) at async ODataRequest.emit (/home/user/projects/Student/node_modules/@sap/cds/lib/req/context.js:58:9) at async ApplicationService.commit (/home/user/projects/Student/node_modules/@sap/cds/lib/srv/srv-tx.js:132:7) at async /home/user/projects/Student/node_modules/@sap/cds/libx/_runtime/cds-services/adapter/odata-v4/handlers/action.js:61:9 { unrecoverable: true } }

@joris-vdb
Copy link

Please refer to an older similar issue -- #44
I was running into the same issue last week, this helped me a lot and got it working now.

@schiwekM schiwekM linked a pull request Sep 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@joris-vdb @Dawood-Ghaznavi and others