Getting 502 Bad Gateway when posting to the add attachment REST API endpoint

Hello,

We are trying to post a file to an issue as attachment, but when the file is bigger we get a 502 Bad Gateway error. This always seems to happen when the request reaches the duration of 1 minute.

With a smaller file it works fine.

This error can be being caused by the nginx configuration for the Jira API server.

Thanks in advance,
Patrícia

Hi @PatriciaPereira,

Maybe there’s an issue in our infrastructure. The API should return a 413 response if the attachment size is exceeded. I’ll see if I can enlist the help of the Jira team.

Regards,
Dugald

Hi @dmorrow,

I don’t think that is the issue, in my configuration I have defined the maximum attachment size as 1GB and I am trying to post much smaller files, e.g. 110MB.

Regards,
Patrícia

Hi @PatriciaPereira,

Thanks for your response. I was referring to a problem on our side rather than yours. The Jira team are looking into this.

I’ve created ACJIRA-2236 to track this.

Regards,
Dugald

Is there any update for this ticket? we have similar problem, when we will try to import execution file, we are getting 502 HTTP error. Of course the file size less than limitation.