N
Novu2w ago
Shisheer

Unexpected Provider Error for SES and Twilio

We use v0.24.0 for api and v0.24.4 for worker, ws and web We've set up the providers under "Integrations Store". We've also set up the Workflow. However, we encounter a "Unexpected provider error" message for both workflows. The screenshots provided shows workflow for SES Email and the end result. Can we please get some assistance on this @Support
No description
No description
No description
No description
No description
No description
10 Replies
Shisheer
ShisheerOP2w ago
Here are the screenshots for Provider setups for SES and Twilio in "Integrations Store"
No description
No description
Shisheer
ShisheerOP2w ago
Here are the screenshots for the Twilio SMS workflow and the results
No description
No description
No description
No description
No description
No description
Shisheer
ShisheerOP2w ago
This is the error message in question:
{"level":50,"time":1733970889292,"pid":18,"serviceName":"@novu/worker","serviceVersion":"0.24.3","platform":"Docker","tenant":"OS","transactionId":"a9d839f2-8163-43ff-a002-ba8fff334e4a","environmentId":"675867ae8ecee2f80977ce72","organizationId":"675867ae8ecee2f80977ce6b","jobId":"675a4a34136b97bc283c6260","jobType":"email","context":"StandardWorker","err":{"type":"PlatformException","message":"Unexpected provider error","stack":"Error: Unexpected provider error\n at RunJob.<anonymous> (/usr/src/app/apps/worker/dist/webpack:/@novu/worker/src/app/workflow/usecases/run-job/run-job.usecase.ts:101:13)\n at Generator.throw (<anonymous>)\n at rejected (/usr/src/app/apps/worker/dist/main.js:1251:65)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)"},"msg":"Failed to run the job 675a4a34136b97bc283c6260 during worker processing"}
{"level":50,"time":1733970889292,"pid":18,"serviceName":"@novu/worker","serviceVersion":"0.24.3","platform":"Docker","tenant":"OS","transactionId":"a9d839f2-8163-43ff-a002-ba8fff334e4a","environmentId":"675867ae8ecee2f80977ce72","organizationId":"675867ae8ecee2f80977ce6b","jobId":"675a4a34136b97bc283c6260","jobType":"email","context":"StandardWorker","err":{"type":"PlatformException","message":"Unexpected provider error","stack":"Error: Unexpected provider error\n at RunJob.<anonymous> (/usr/src/app/apps/worker/dist/webpack:/@novu/worker/src/app/workflow/usecases/run-job/run-job.usecase.ts:101:13)\n at Generator.throw (<anonymous>)\n at rejected (/usr/src/app/apps/worker/dist/main.js:1251:65)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)"},"msg":"Failed to run the job 675a4a34136b97bc283c6260 during worker processing"}
Pawan Jain
Pawan Jain2w ago
@Shisheer Can you check if credentials are correct? Do you more logs in api service?
Shisheer
ShisheerOP2w ago
@Pawan Jain Yup, I'm sure they are correct. I copied from the SES and Twilio website using their clipboard button and pasted it into Novu web that's running in http://localhost:4200. I searched for "email" in my api logs but only got level 30 logs (so not ERROR logs). I also searched for "email" in my worker logs and got the following 3 logs (1 is level 30, 2 are level 50). I've attached the log file for worker:
Shisheer
ShisheerOP2w ago
These are the logs for api:
Pawan Jain
Pawan Jain2w ago
@Shisheer Could you try using the 0.24.4 tagged version for the API service?
Shisheer
ShisheerOP2w ago
@Pawan Jain Sure, I will try that again. I've tried v0.24.4 for api before; however, I noticed this error in the log (attached in log file)
Shisheer
ShisheerOP2w ago
@Pawan Jain Never mind, I fixed the issue. The egress traffic for the worker was being dropped because the egress policy was preventing the worker from making calls to external IPs via port 443 👍
Pawan Jain
Pawan Jain6d ago
Thanks for the update Shisheer
Want results from more Discord servers?
Add your server