Unable to send attachment in email event.
Tried the Attachment with 2 different naming conventions & with both lower and Pascal Case. kindly find the attached file for requested payloads. @Pawan Jain
[15:13:37.948] ERROR (18): serviceName: "@novu/api" serviceVersion: "0.24.0" platform: "Docker" tenant: "OS" req: { "id": 114551, "method": "POST", "url": "/v1/events/trigger", "query": {}, "params": { "0": "events/trigger" }, "headers": { "x-forwarded-for": "source ip", "x-forwarded-proto": "https", "x-forwarded-port": "3000", "host": "hostname:3000", "x-amzn-trace-id": "Root=1-676d72a1-73f618ee0e397cbe000b40f8", "content-length": "523", "authorization": "[REDACTED]", "traceparent": "00-9cc9b088b7bc455ae34da34ea2c11d4b-aec524c4ca9ab12e-01", "content-type": "application/json; charset=utf-8" }, "remoteAddress": "::ffff:10.3.7.111", "remotePort": 38608 } user: { "userId": null, "environmentId": null, "organizationId": null } context: "ExceptionsHandler" err: { "type": "AggregateError", "message": "", "stack": AggregateError: at internalConnectMultiple (node:net:1114:18) at afterConnectMultiple (node:net:1667:5) at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) "aggregateErrors": [ { "type": "Error", "message": "connect ECONNREFUSED ::1:4566", "stack": Error: connect ECONNREFUSED ::1:4566 at createConnectionError (node:net:1634:14) at afterConnectMultiple (node:net:1664:40) at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) "errno": -111, "code": "ECONNREFUSED", "syscall": "connect", "address": "[REDACTED]", "port": 4566 }, }
[15:13:37.948] ERROR (18): serviceName: "@novu/api" serviceVersion: "0.24.0" platform: "Docker" tenant: "OS" req: { "id": 114551, "method": "POST", "url": "/v1/events/trigger", "query": {}, "params": { "0": "events/trigger" }, "headers": { "x-forwarded-for": "source ip", "x-forwarded-proto": "https", "x-forwarded-port": "3000", "host": "hostname:3000", "x-amzn-trace-id": "Root=1-676d72a1-73f618ee0e397cbe000b40f8", "content-length": "523", "authorization": "[REDACTED]", "traceparent": "00-9cc9b088b7bc455ae34da34ea2c11d4b-aec524c4ca9ab12e-01", "content-type": "application/json; charset=utf-8" }, "remoteAddress": "::ffff:10.3.7.111", "remotePort": 38608 } user: { "userId": null, "environmentId": null, "organizationId": null } context: "ExceptionsHandler" err: { "type": "AggregateError", "message": "", "stack": AggregateError: at internalConnectMultiple (node:net:1114:18) at afterConnectMultiple (node:net:1667:5) at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) "aggregateErrors": [ { "type": "Error", "message": "connect ECONNREFUSED ::1:4566", "stack": Error: connect ECONNREFUSED ::1:4566 at createConnectionError (node:net:1634:14) at afterConnectMultiple (node:net:1664:40) at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) "errno": -111, "code": "ECONNREFUSED", "syscall": "connect", "address": "[REDACTED]", "port": 4566 }, }
4 Replies
@Support @Community Support need help
Surprisingly enough, I haven't attempted to send attachments through Novu. Have you been able to replicate this on the cloud or v2 versions?
@Fakhar
To send attachment, storage like s3 should be configured. Novu first store the attachment in s3, send the file with email and then remove the file from storage, so this storage will be used temporarily.
s3 config documentation
https://v0.x-docs.novu.co/self-hosting-novu/object-storage#aws-s3
Sending email attachment example
https://docs.novu.co/integrations/providers/email/overview#sending-email-attachments
@Fakhar did you get chance to check on this?
thanks a lot @Pawan Jain issue is fixed now with your help 😇