N
Novu11mo ago
Khong

No Notification When Running Novu from Source

Hi! When trying to run novu from source, I was not able to see any websocket notification. Not sure why. When everything was running from docker images, the notification got sent to my frontend app just fine. I have made sure that all the ports are correct and that there are no errors in the console. The frontend app was able to fetch data from novu backend, but when I make new notifications, the ws connection remained silent; nothing happened (needed to refresh to see new data in my new feed) Thanks in advance.
6 Replies
Novu_Bot
Novu_Bot11mo ago
@Khong, you just advanced to level 1!
Khong
Khong11mo ago
Also, the jobs were logged inside the console
No description
Tomer Barnea
Tomer Barnea11mo ago
Hey @Khong do you have your Redis server running? @Pawan Jain could that be something else?
Khong
Khong11mo ago
Hi! Yes I have Redis running.
Tomer Barnea
Tomer Barnea11mo ago
@Pawan Jain can you help us here??
Pawan Jain
Pawan Jain11mo ago
Hi @Khong Apologies for the delayed response. If you are running Novu in local machine, you need to use backendUrl and socketUrl props as per this documentaion Example values if api and ws service is running on default port
import {
NovuProvider,
PopoverNotificationCenter,
NotificationBell,
} from "@novu/notification-center";

function Novu() {
return (
<NovuProvider
backendUrl={"http://localhost:3000"}
socketUrl={"http://localhost:3002"}
subscriberId={"SUBSCRIBER_ID"}
applicationIdentifier={"APPLICATION_IDENTIFIER"}
>
<PopoverNotificationCenter colorScheme="dark">
{({ unseenCount }) => <NotificationBell unseenCount={unseenCount} />}
</PopoverNotificationCenter>
</NovuProvider>
);
}
import {
NovuProvider,
PopoverNotificationCenter,
NotificationBell,
} from "@novu/notification-center";

function Novu() {
return (
<NovuProvider
backendUrl={"http://localhost:3000"}
socketUrl={"http://localhost:3002"}
subscriberId={"SUBSCRIBER_ID"}
applicationIdentifier={"APPLICATION_IDENTIFIER"}
>
<PopoverNotificationCenter colorScheme="dark">
{({ unseenCount }) => <NotificationBell unseenCount={unseenCount} />}
</PopoverNotificationCenter>
</NovuProvider>
);
}
Want results from more Discord servers?
Add your server