@novu/api throws validation error on _feedId null

Using the @novu/api node SDK both version 0.0.7 and 1.0.0 it throws an error accessing the subscriber feed if the _feedId is null (which is the case for all our in app notifcations).
const resp = await novu.subscribers.notifications.feed({
subscriberId: subscriber.subscriberId,
read: false,
});
const resp = await novu.subscribers.notifications.feed({
subscriberId: subscriber.subscriberId,
read: false,
});
Throws error attached! @Pawan Jain
4 Replies
Pawan Jain
Pawan Jain5mo ago
Thanks Axel. I will keep you updated on this @Axel Dickson We have identified a bug and it will be fixed soon A small update: this bug is fixed in @novu/api sdk 1.1.0 version
Axel Dickson
Axel DicksonOP5mo ago
Thanks! I tested now running local studio and I do see other similar schema validation errors for _templateId and _templateMessageId.
Novu_Bot
Novu_Bot5mo ago
@Axel Dickson, you just advanced to level 2!
Pawan Jain
Pawan Jain5mo ago
@Axel Dickson A small update: these issues are now fixed with a new version 1.3.0 of @novu/api sdk Could you please check from your side?

Did you find this page helpful?