N
Novu•9mo ago
vitalii9603

Issue with Sending Notifications via Novu Service

Subject: Issue with Sending Notifications via Novu Service Dear Community, My name is Vitalii, and I am a developer currently working on integrating the Novu service into our application to handle notifications. I just recently got to know Novu and I can't figure out what the problem is. I use Medusa JS. I am reaching out to the community for assistance with a problem I have encountered, and I would greatly appreciate any insights or guidance you can offer. The issue I am facing revolves around the functionality of sending notifications via the Novu service. Despite following the documentation and implementing the necessary code, I have been unsuccessful in getting notifications to be delivered successfully. Upon investigating, I discovered that the following error message is being generated: "An error occurred while Novu-notifications was processing a notification for order.placed: Request failed with status code 422" I have already verified that the data being sent to Novu is correct. Could anyone in the community who has experience with the Novu service or similar notification services kindly offer their assistance? Any advice, troubleshooting steps, or insights into resolving this issue would be immensely helpful. Thank you in advance for your time and assistance. I look forward to hearing from you soon. Best regards,
5 Replies
Ask Inkeep
Ask Inkeep•9mo ago
Hi @vitalii9603, I'm an AI assistant for Novu. While a team member reviews this question, I'll look through relevant sources and see if I can provide suggestions. Please tag @Ask Inkeep with any follow-up questions. ----------------------------- While I generate an answer, here are some sources that might be helpful: * How to use Novu to send notifications to a channel in a Discord server * Push * Node.js * How to send PUSH notifications to iOS devices with FCM using Novu ----------------------------- Answer The "Request failed with status code 422" error you're encountering typically signifies that the server understands the content type of the request entity, and the syntax of the request entity is correct but was unable to process the contained instructions. This can occur for a few reasons when integrating with the Novu service, such as invalid data or missing required fields in the payload you're sending to Novu. Even though you've verified the data being correct, it might be helpful to double-check the payload structure against Novu's expected schema, particularly focusing on required fields, data types, and any constraints on the values. Without specifics on the data structure you're sending, I can't provide an exact solution. However, general steps to troubleshoot this issue include: 1. Review Required Fields: Ensure all required fields are included in your payload. 2. Data Validation: Validate the data types and formats of the payload against Novu's documentation. 3. Check Novu's Documentation: Sometimes, documentation updates might introduce new requirements or change existing ones. Make sure your integration aligns with the current Novu API documentation. Given the information provided, these are broad steps. For more detailed assistance, specific to your case, reviewing the API request and payload against Novu's documentation might provide more insight. Additionally, engaging with the Novu community or support, if available, can offer tailored assistance. Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
Tomer Barnea
Tomer Barnea•9mo ago
Hey @vitalii9603, are you using the cloud or selfhosted version? would you mind sending here an example (curl, etc...) of the trigger request? also @Pawan Jain @Moderator can you help us here?
Pawan Jain
Pawan Jain•9mo ago
@vitalii9603 Thanks for sharing the error code. Error code 422 signifies unprocessable entity which means that data is not formatted correctly As suggested by Tomer, could you please share code snippet you used to trigger the workflow?
vitalii9603
vitalii9603OP•9mo ago
@Tomer Barnea @Pawan Jain Hi there, Thank you so much for your prompt response and willingness to assist. I've managed to resolve the issue with the trigger, and everything is working smoothly now. 🙂
Pawan Jain
Pawan Jain•9mo ago
Thanks for update @vitalii9603 Feel free to share it you see any issue again
Want results from more Discord servers?
Add your server