N
Novu12mo ago
Todd H.

Problem with running digest-learning-app

I pulled the digest-learning-app and went through the instructions. I am using my local API Key and Application ID values based on the local Docker instance of Novu I spun up last week. I believe I have them set properly. I am able to run the back end and it is listening on port 3000. I start up the front end and it lists a bunch of warnings but eventually opens my browser with the app running. When I go to add a message and click enter I get this error: Uncaught runtime errors: ERROR Request failed with status code 409 AxiosError: Request failed with status code 409 at settle (http://localhost:3001/static/js/bundle.js:134417:12) at XMLHttpRequest.onloadend (http://localhost:3001/static/js/bundle.js:133108:66) I am not familiar with Node nor JavaScript. I have looked through the code, but it is not clear to me where this error is coming from. Will you please help me figure out what is going wrong with this setup? Thanks!
26 Replies
sumitsaurabh927
sumitsaurabh92712mo ago
Hey there! Instead of docker, can you run a simple mock backend and try to see if it works?
Todd H.
Todd H.12mo ago
I am running the mock back end that came with the repo. I am just using the key values from the Docker instance.
sumitsaurabh927
sumitsaurabh92712mo ago
Can you send me a SS of the request and response body from browser?
Todd H.
Todd H.12mo ago
Sure thing. One moment.
sumitsaurabh927
sumitsaurabh92712mo ago
Also make sure you've done everything correctly as described here: https://docs.novu.co/guides/add-digest-to-inapp-notifications
Novu
How to Add Digest to In-App Notifications - Novu
Leverage the digest functionality to send in-app notifications
Todd H.
Todd H.12mo ago
Okay. Let me double check that first. I see. I did not do that part. I just cloned the code and ran it. Besides the keys, I was wondering how the frontend/backend knew what workflow to call in my setup. Let me go through that document first and see what happens then. Thank you! The digest test page is now working for the most part.
Novu_Bot
Novu_Bot12mo ago
@Todd H., you just advanced to level 2!
Todd H.
Todd H.12mo ago
What is not working is that the messages are not showing up in the notification box. I am assuming it has something to do with me not setting up the in-app notification properly. What is the variable to get the messages for the handlebar entry?
No description
Todd H.
Todd H.12mo ago
Currently I have this {{#each step.events}} {{subscriber.firstName}} <br /> <br /> {{/each}} Which is not even showing the firstName.
Prosper
Prosper12mo ago
@sumitsaurabh927 please can you update the sample app readme to contain the guide link. So that people can know to also check the guide out
sumitsaurabh927
sumitsaurabh92712mo ago
Updated last night itself Show me the request and response objects when you click the submit button Also try logging this to see if it gets logged correctly
Todd H.
Todd H.12mo ago
No description
No description
Todd H.
Todd H.12mo ago
I also notice that when I click the the bell icon and then notification box that the key labeled "content" only has line breaks in it.
No description
Todd H.
Todd H.12mo ago
Do you mean to add a print message in the code?
sumitsaurabh927
sumitsaurabh92712mo ago
yes
Want results from more Discord servers?
Add your server