Images: Direct Creator Upload Error 5408

If the image size is large enough but still way under the size limit (occurs with images 3MB and up), the upload doesn’t happen fast enough it seems.

The response error seems to indicate that the connection might be timing out on the Cloudflare server:

  "result": null,
  "success": false,
  "errors": [
    {
      "code": 5408,
      "message": "The upload failed to send due to a slow connection. Check your internet connection and try again."
    }
  ],
  "messages": []
}

I am using XHR to track the progress of the upload which seems to complete at 100% but this final response from Cloudflare server indicates that the upload failed.

Any ideas what might be going on and how to fix? Thank you

Hey, can you provide more details?

How large the image is?
Do you upload file data or upload via url?
Can you collect tcpdump?

Thanks for your response.

The image is only 3MB. Upload via file data using the direct creator upload URL. But if I throttle bandwidth with dev tools and extend the upload time, any sized image, even 200k will cause the error.

I’ll look into collecting a tcpdump.

Most of the time the images upload fine, but if the upload process takes more than about 15 seconds, then the 5408 error happens.

Thank you

there are some retransmissions to cloudflare host 104.18.3.36

it’s hard to tell which side causes retransmits.

as for upload timeout, we do have 30 seconds request read timeout, after this clients will see 408 status code.

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