N
Novu7mo ago
johsv

Unable to send notifications

Hi! We are using novu selfhosted over a couple of different docker hosts. All the containers starts up and seems to work fine. We can create and edit workflows in the web-ui. But when we try to start sending notifications nothing happens. There is no activity in recorded in the activity feed. In the logs of the worker we get this error message for each notification we try to send: 56381/10/31 02:01AM 50 pid=17 serviceName=@novu/worker serviceVersion=0.24.0 platform=Docker tenant=OS transactionId=3fdd9908-df62-483c-8886-074cd2c50186 environmentId=664f46193c32bbfb26d70395 organizationId=664f46193c32bbfb26d7038e context=SubscriberProcessWorkerService - getWorkerProcessor err={"type":"TypeError","message":"undefined is not iterable (cannot read property Symbol(Symbol.iterator))","stack":"TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))\n at SubscriberJobBound.<anonymous> (/usr/src/app/packages/application-generic/build/main/usecases/subscriber-job-bound/subscriber-job-bound.usecase.js:134:93)\n...
1 Reply
Ask Inkeep
Ask Inkeep7mo ago
Hi @johsv, I'm an AI assistant for Novu. While a team member reviews this question, I'll see if I can find relevant sources for your question. ----------------------------- While I generate an answer, here are some sources that might be helpful: * Messages * Get in-app notification feed for a particular subscriber * How to use Novu to send notifications to a channel in a Discord server * Observability ----------------------------- Answer It appears that the issue you are encountering with Novu while self-hosted on Docker might be related to a misconfiguration or an unintended error in the worker service that handles notifications. The error message you provided (TypeError: undefined is not iterable) typically suggests that there is an issue with the data being processed by your worker service—specifically, it is trying to iterate over a value that is not iterable, likely due to an unexpected undefined value. While the exact resolution isn't detailed in the provided documents, here are a few steps you can take to troubleshoot and potentially resolve the issue: 1. Verify Configuration Files: Ensure that all your configuration files, especially those related to the worker service, are correctly set up. Check for any missing or incorrect configurations that might lead to such errors. 2. Review Docker Deployment: Since you are using Docker, make sure that all the Docker containers are properly linked and that the environment variables are correctly passed to the containers. This can often be a source of issues if the worker service isn't able to access necessary configuration. 3. Check for Code Updates: Sometimes, such errors are fixed in newer versions of the software. Make sure that your Novu installation and its dependencies are up-to-date. Review the changelogs for any updates that might address this error. 4. Examine the Worker Logs: More detailed logs from the worker service might give you more insight into what exactly is failing. Look for any patterns or additional errors that occur before this error. 5. Isolate the Issue: Try to isolate the issue by temporarily reducing the complexity of the notification being sent. For example, test with a simple notification to verify if the issue is with specific types of notifications or data. If these steps don't resolve the issue, you might want to bring this up with the Novu community or file an issue on their official support channels with detailed logs and configuration details. This could help in diagnosing the problem more effectively and finding a resolution. Got it. Tagging @Support for additional help. Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
Want results from more Discord servers?
Add your server