jarredwitt
jarredwitt
NNovu
Created by jarredwitt on 9/5/2023 in #💬│support
Error: Missing lock for job
I am seeing the following error message repeated in the console by the worker: 2023-09-04 15:33:31 Error: Missing lock for job repeat:6ebd35806c12b88fd2ba60acc9ec4828:1693859611000. failed 2023-09-04 15:33:31 at Scripts.finishedErrors (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/bullmq/src/classes/scripts.ts:355:16) I haven't been able to figure out what's causing it, but I think it's somewhat related to a workflow step failing due to the subscriber not having a channel configured. 1. Can that error be fixed? 2. Is there a way to skip a step if the user doesn't have the channel configured? IMO this shouldn't be an error especially for push notifications since the user could choose not to accept them.
29 replies
NNovu
Created by jarredwitt on 3/2/2023 in #💬│support
How to mark a message as seen based on push payload
We're using Novu to send push notifications to mobile devices. We want to be able to mark a message as seen when the user presses on the notification, but I'm not seeing anything in the message data that would allow use to do that. Any ideas on how I could do this? It doesn't look like there is a way to look up a specific message based on payload data either. Edit: A little more info, in notification template we have the in app, email and push channels. Specifically what I'm looking for is a way to mark the in app message as read from data that would be available in the push notification.
8 replies
NNovu
Created by jarredwitt on 2/21/2023 in #💬│support
Ability to trigger event for non-subscriber
I'm looking at the docs for trigger event https://docs.novu.co/api/trigger-event/ and the body parameters state that the "to" property can be an object with firstName, lastName and email. When I try to use that payload for the "to" to trigger the event I get the following error: "subscriberId under property to is not configured, please make sure all the subscriber contains subscriberId property" That message seems to be at odds with the docs. Is it only possible to trigger notifications to subscribers?
9 replies
NNovu
Created by jarredwitt on 2/1/2023 in #💬│support
Set feed dynamically using trigger override
We are a multi tenant app where a user can be a part of many orgs using the same user id. We have all of our users added as subscribers and we have notifications flowing from our API to Novu. When we pull the notifications for a particular subscriber we’d like to separate them based on feed id. We know we can do this by assigning a feed to the In App node in the template workflow, but we don’t want to have to create a separate feed manually for each of our orgs. It looks like we can create feeds using the API so I’m wondering if there is a way to override the feed the In App node uses in the workflow template using the trigger override so we can set it dynamically based on the users current org? Our goal is to create a feed for each org using the org id for the feed name. When the notification is triggered we’ll look up the correct feed using the current user’s selected org and set it using the override property of the payload. If this isn’t possible, would a PR that allows for this be considered?
4 replies