Unable to access "changes" menu. Cannot read properties of null (reading 'firstName')

We get this message: Sorry, but something went wrong. Our team has been notified and we are investigating. Event Id: 7cc9a9461ceb4cbc834ccec41ab8d0e5. TypeError: Cannot read properties of null (reading 'firstName') Wondering if the reason is that none of our 3 suscribers have that field populated?
6 Replies
Ask Inkeep
Ask Inkeep8mo ago
Hi @SafeMahou5x, I'm an AI assistant for Novu. While a team member reviews this question, I'll see if I can find relevant sources for your question. ----------------------------- While I generate an answer, here are some sources that might be helpful: * General * SMS Channel Overview * Java quickstart * Chat Channel Overview -----------------------------
Ask Inkeep
Ask Inkeep8mo ago
Answer The error you're encountering, "Cannot read properties of null (reading 'firstName')," likely occurs because one or more of your subscribers do not have their firstName field populated. This can lead to issues if the code expects this field to always have a value. To resolve this, ensure that all your subscribers have the firstName attribute set. You can check and update the subscribers' information using code similar to the following:
import { Novu } from '@novu/node';
const novu = new Novu('<YOUR_NOVU_API_KEY>');

await novu.subscribers.update('<SUBSCRIBER_ID>', {
firstName: 'John', // Provide a valid firstName
// other fields you want to update
});
import { Novu } from '@novu/node';
const novu = new Novu('<YOUR_NOVU_API_KEY>');

await novu.subscribers.update('<SUBSCRIBER_ID>', {
firstName: 'John', // Provide a valid firstName
// other fields you want to update
});
(1) Additionally, verify that your subscribers have the necessary fields populated by checking their attributes in the Novu dashboard.
Tomer Barnea
Tomer Barnea8mo ago
Hey @SafeMahou5x , let me know check that, @Dima Grossman , @sokratis can you help us out here?
SafeMahou5x
SafeMahou5xOP8mo ago
Thanks! according to the docs, only suscriberId is mandatory ( we are doing some tests )
Ask Inkeep
Ask Inkeep8mo ago
Got it. Tagging @Support for additional help.
Dima Grossman
Dima Grossman8mo ago
Hi @SafeMahou5x have you removed a user recently from the Novu platform? Might be related to a deleted user on web.novu.co. Nonetheless, we have identified the problem and issuing a fix right now An update was deployed on our cloud instace. Could you please try again visiting the changes page?
Want results from more Discord servers?
Add your server