500 errors updating explanations with attachments

Hello!

For a few months I have been seeing sporadic HTTP 500 responses from the API when I try to upload an attachment to an explanation.

The code is run in a background job and for years it’s been fine; I don’t know why it’s started playing up. I can’t seem to reproduce it in the Rails console when I call the code myself with the same explanation and attachment that triggered a 500 in a background job.

Is there anything you can suggest to help me get to the bottom of this please? I can provide timestamps and request details and so on.

Many thanks!

Yours,
Andrew Stewart

I should clarify that the file always gets successfully attached to the explanation. It’s just that the response is a 500 error from time to time.

Hey Andrew, I’m one of the engineers at FreeAgent.

I think that would helpful, so I can look at some of our logs. Would you be willing to provide your company subdomain as well?

Thanks,
George

Hi George,

I have sent you a private message.

Thank you!
Andrew

Since November 2024 I have been ignoring HTTP 500 errors when uploading attachments to bank transaction explanations because the upload is always (?) in fact successful.

A couple of days ago I removed the code that ignores the HTTP 500 errors. Since then I have seen several HTTP 500 errors.

So I just wanted to let you know this is still an issue :slight_smile:

Thanks for letting us know @Andrew_Stewart. Let me look into what’s causing these errors and get back to you.

Best, George