Getting 520 error when upload more than 1MB file to server

What is the name of the domain?

What is the issue you’re encountering

I use Cloudflare DNS for my website. I tried to upload file from the frontend to my server. I got Cloudflare error page with 520 code when file is bigger than 1MB.

What feature, service or problem is this related to?

I don’t know

What are the steps to reproduce the issue?

  1. I sent a request to the server with Postman and it doesn’t work with the image that size’s bigger than 1MB. So, I think it’s not a problem with my front end.
  2. I tried running the server on my computer and sending requests to it with Postman. It works. So, I think it’s also not a problem with my server.
    I also check the response header size if it’s too big but it’s not. It’s just around 400B
  3. I ran a curl command on the server to send a request to my docker endpoint on the server. It works. So, I don’t think it’s a problem with my gateway configuration. I use self-host Coolify. I sent the request to the coolify-proxy which is traefix one.

Screenshot of the error

This is the command I ran on the server to test my gateway and it worked.

curl --resolve xxxx:443:127.0.0.1
-H "Host: xxxx" \
--location 'https://xxxx/api/upload/temp/create-model-files' \
--form 'thumbnail=@"/root/test.png"' -w "Header Size: %{size_header}\n"`

Hey cloudflare team can you please respond?

Hi there!
Just an idea to help troubleshooting this issue: have you tried making your DNS records as DNS-Only to checker whether the issue remain or not? You could also try to Pause Cloudflare to run your tests. Other pointers can be seen on our documentation.
If you have a ticket opened with us, after checking all the steps covered on our documentation, you could try to generate a HAR file, and attach it to your ticket by replying to us there.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.