422 Unprocessable Entity When Sending Attachments via Novu API
@Pawan Jain
Description
When executing a job in the Novu queue, I encounter a 500 Internal Server Error with an UnknownBridgeRequestError message. The error occurs when Novu tries to call a bridge request to
http://api.novu.local:3000/v1/environments/{ENV_ID}/bridge.
The job enters the queue but fails to execute with the following error:

15 Replies
@r2d2
Looking into this
Thanks, fyi, I tried the docs example (with
base64
image example) and it worked... so I don't know if its a file type or a file size issue.it could be a file format issue. is it valid buffer format? can you share the code example?
Can you share the filesize?
This is my code:
The file size range from 200 kB to 300 kB
I am more interested in internals of
I'm using pdfkit, and this is my code:
thanks for sharing. I will deep dive into this later today. Want to check if base64 format will work for your usecase?
I've tried but file type does not allow me to use a string value:
I remove my typing restrictions and tried base64, but had the same 500 error.
@r2d2, you just advanced to level 1!
earlier you mentioned that base64 worked
Yes with this example:
Just now I was checking and the error it gives is from the bridge point, I have it as local studio, could this have something to do with it? Do I need to do something additional?
Another idea, is that the payload has a maximum length and my file is exceeding it?
@Pawan Jain @Support Hi, is there any progress or solution for my attachment problem?
I have already tried even with the base64 string of my document, calculated separately, and it still throws me an error. I was checking that the errors always fail in step 3, of the connection to the bridge, but already that is going beyond what I understand of how Novu works.
@Support I keep getting the error from the attached pdf in base64. I am trying directly on the web platform and still get a bridge connection error. I have encoded the pdf on an online site and it weighs 56 kB, and I have been able to decode it, so it is not a problem with my file. I need urgent help with this issue or at least tell me you can't support this and I will look for another solution to Novu.
@r2d2
Apologies for missing this. I am checking this on priority
@r2d2
I am able to reproduce the issue. Sharing with our team to take a look. I will keep you updated