We are building a forum that when submitted will send an email with an attachment.
The problem I’m having is that I have a pdf file that when attached to the forum causes the function to give a 500 error but this only happens the first time you submit the form, if you submit it again, everything works fine and the email is sent successfully with the attachment. The attachment is only 447KB and I’m converting it to a base64.
I tried with different attachments like word document which is 12 KB and I don’t seem to get the same issue.
The thread which you sent me doesn’t seem to be connected to the issue I’m having. I get a 500 when my form is first submitted. This also doesn’t happen if the attachment sent with the form is small in size. I have a PDF that is 75KB and the form never fails to submit but if I choose another PDF file which is 447KB, I then get the error. Again, the error only occurs in the first submission. If the first submission fails, and you resubmit the form, you don’t get the error. When you get the 500 error, there is nothing in the response and also no logs are generated in the function log which makes it impossible for me to debug since I don’t get this issue locally.
My hands are tied behind my back here a little since I don’t know what I can do to debug it. Only you guys can help me now.
We’re seeing this happen with at least 2 more users. We’re already engaged in a discussion with the engineers on what the next steps should be, but the follow-up would most likely happen in the coming week.
i took a look at the issue that was filed internally, and we have this thread mentioned here. It is a private issue, so you wouldn’t be able to subscribe to it, but you can subscribe to this thread, and when work is completed, we will post an update here.