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
Hey there!
Instead of docker, can you run a simple mock backend and try to see if it works?
I am running the mock back end that came with the repo. I am just using the key values from the Docker instance.
Can you send me a SS of the request and response body from browser?
Sure thing. One moment.
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
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.
@Todd H., you just advanced to level 2!
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](https://cdn.answeroverflow.com/1161398810942128128/image.png)
Currently I have this
{{#each step.events}}
{{subscriber.firstName}}
<br />
<br />
{{/each}}
Which is not even showing the firstName.@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
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
![No description](https://cdn.answeroverflow.com/1161651041222275102/image.png)
![No description](https://cdn.answeroverflow.com/1161651041553616998/image.png)
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](https://cdn.answeroverflow.com/1161651716396167239/image.png)
Do you mean to add a print message in the code?
yes