N
Novu•3mo ago
Devesh Verma

NextJs | Unable to integrate in-app

I have added the code snippet to nextjs app. But still in-app in not shown as active. Now, when I trigger notification from studio, I do not see any notification.
No description
No description
26 Replies
Devesh Verma
Devesh VermaOP•3mo ago
Execution is marked as success.
No description
Devesh Verma
Devesh VermaOP•3mo ago
@Support @DevRel @Community Support
Pawan Jain
Pawan Jain•3mo ago
Devesh, did you try loading nextjs app with Inbox? Do you see any notifications there?
Devesh Verma
Devesh VermaOP•3mo ago
I do not see any notifications Also, one more thing subscriberId will have to dynamic right? Will be userId from our db.
Pawan Jain
Pawan Jain•3mo ago
As of now, you should use the same subscriberId to which workflow is triggered in studio Because notifications are sent to only that subscriber.
Devesh Verma
Devesh VermaOP•3mo ago
Yeah, thats same. Still no notifications. Also, if you check novu dashboard screenshot, in-app is not showing as active.
Pawan Jain
Pawan Jain•3mo ago
Please check the console and network tab for any error
Devesh Verma
Devesh VermaOP•3mo ago
in studio?
Pawan Jain
Pawan Jain•3mo ago
If you are not receiving the notification from studio, can you sync the workflows and then trigger that workflow from dashboard instead?
Devesh Verma
Devesh VermaOP•3mo ago
{
"message": "Unknown BridgeError: {\n \"code\": \"TunnelNotFound\",\n \"statusCode\": 404,\n \"timestamp\": \"2025-02-06T13:34:38.505Z\",\n \"path\": \"/v1/events/trigger\",\n \"message\": \"Unable to establish tunnel connection to `https://f3de47ec-16c5-48c9-a356-d2ad0ce9ff1a.novu.sh/api/novu`. Run npx novu@latest dev in Local mode, or ensure your Tunnel app deployment is available.\",\n \"ctx\": {\n \"code\": \"TunnelNotFound\"\n }\n}",
"data": {
"stack": "Unknown BridgeError"
},
"code": "BridgeError"
}
{
"message": "Unknown BridgeError: {\n \"code\": \"TunnelNotFound\",\n \"statusCode\": 404,\n \"timestamp\": \"2025-02-06T13:34:38.505Z\",\n \"path\": \"/v1/events/trigger\",\n \"message\": \"Unable to establish tunnel connection to `https://f3de47ec-16c5-48c9-a356-d2ad0ce9ff1a.novu.sh/api/novu`. Run npx novu@latest dev in Local mode, or ensure your Tunnel app deployment is available.\",\n \"ctx\": {\n \"code\": \"TunnelNotFound\"\n }\n}",
"data": {
"stack": "Unknown BridgeError"
},
"code": "BridgeError"
}
Saw this in studio network tab. I have added tunnel to my novu dashboard. Does studio also require tunnel somewhere?
āœ” šŸ›£ļø Tunnel → https://f3de47ec-16c5-48c9-a356-d2ad0ce9ff1a.novu.sh/api/novu
āœ” šŸ–„ļø Dashboard → https://dashboard.novu.co
āœ” šŸŽØ Studio → http://localhost:2022/studio
āœ” šŸŒ‰ Endpoint → http://localhost:8080/api/novu
āœ” šŸ›£ļø Tunnel → https://f3de47ec-16c5-48c9-a356-d2ad0ce9ff1a.novu.sh/api/novu
āœ” šŸ–„ļø Dashboard → https://dashboard.novu.co
āœ” šŸŽØ Studio → http://localhost:2022/studio
āœ” šŸŒ‰ Endpoint → http://localhost:8080/api/novu
I have added Tunnel value to novu dashboard
Devesh Verma
Devesh VermaOP•3mo ago
Getting this error while tring to manually sync
No description
Devesh Verma
Devesh VermaOP•3mo ago
Tried triggering from dashboard, again got success message but cannot see the notification.
Novu_Bot
Novu_Bot•3mo ago
@Devesh Verma, you just advanced to level 3!
Devesh Verma
Devesh VermaOP•3mo ago
Possbile to get on call and help us out here.
Pawan Jain
Pawan Jain•3mo ago
Can you stop the server and use npx novu@latest dev command again?
Devesh Verma
Devesh VermaOP•3mo ago
yeah, did that so the studio error of manul sync was rectified
Pawan Jain
Pawan Jain•3mo ago
Just want to make sure you are using correct application identifier.

application identifier should be copied from API keys page
Devesh Verma
Devesh VermaOP•3mo ago
Yes thats correct
Pawan Jain
Pawan Jain•3mo ago
and subscriberId for your case should be 665ef21e78d00fc5e3f370cc You have turned on hmac encryption in integration settings
Pawan Jain
Pawan Jain•3mo ago
Can you please turn off this option?
No description
Devesh Verma
Devesh VermaOP•3mo ago
Where can I check hmac settings?
Pawan Jain
Pawan Jain•3mo ago
This can be found here
No description
Pawan Jain
Pawan Jain•3mo ago
There are few extra steps needed to use this option
https://docs.novu.co/inbox/react/production
Devesh Verma
Devesh VermaOP•3mo ago
Turning off this option worked. Now, I can see all the previous notificaions šŸŽ‰
Pawan Jain
Pawan Jain•3mo ago
Perfect šŸ‘Œ
Devesh Verma
Devesh VermaOP•3mo ago
Thanks a lot man

Did you find this page helpful?