# Random 'Unknown error' thrown by Uppy

**URL:** <https://community.transloadit.com/t/random-unknown-error-thrown-by-uppy/17227>\
**Category:** Uppy\
**Created:** [August 14, 2024, 3:22pm UTC](https://community.transloadit.com/t/random-unknown-error-thrown-by-uppy/17227 "2024-08-14T15:22:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![iblack10](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/iblack10/32/1208_2.png) [@iblack10](https://community.transloadit.com/u/iblack10)\
**Post date:** [August 14, 2024, 3:22pm UTC](https://community.transloadit.com/t/random-unknown-error-thrown-by-uppy/17227/1 "2024-08-14T15:22:46Z")

</div>

Hi all,

I can’t get a local reproduction of this problem so I didn’t want to create a bug request but I’m really struggling with an “Unknown error” that gets thrown by Uppy. I’d say it’s working well 99% of the time but we are occasionally getting reports of uploads failing and I can see them in our logs.

Looking at the codebase there are only two instances where a “Unknown error” string gets used:  
[https://github.com/search?q=repo%3Atransloadit%2Fuppy%20"unknown%20error"&type=code](https://github.com/search?q=repo%3Atransloadit%2Fuppy%20%22unknown%20error%22&type=code)

We are using the aws-s3 package (v3.6.2).

Attached is a screengrab of the logs I do have but does anyone have any hints or ideas about how I can try to debug this further?

The calls to upload to AWS all seem to continue in the background but the UI shows  
“Failed to upload” and never recovers.

 ![SCR-20240814-oinm](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/2X/6/6950b42fa7b8242663ff0e3ecb7370152f260db6.png)

Many thanks!

---

<div class="post-metadata">

**Author:** ![Merlijn](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/merlijn/32/1382_2.png) [@Merlijn](https://community.transloadit.com/u/Merlijn)\
**Post date:** [August 20, 2024, 9:02am UTC](https://community.transloadit.com/t/random-unknown-error-thrown-by-uppy/17227/2 "2024-08-20T09:02:25Z")

</div>

Hi, sorry to hear that. Unfortunately without a way to reproduce it’s hard for us to take a look.

---

<div class="post-metadata">

**Author:** ![XavierLaflamme](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/xavierlaflamme/32/1239_2.png) [@XavierLaflamme](https://community.transloadit.com/u/XavierLaflamme)\
**Post date:** [October 10, 2024, 4:47pm UTC](https://community.transloadit.com/t/random-unknown-error-thrown-by-uppy/17227/3 "2024-10-10T16:47:05Z")

</div>

@iblack10 did you ever figure out what could be happening here? I’m running into the same issue when uploading 100 or so 10-20 MB files. I am able to successfully recreate this pretty consistently if that could be helpful in diagnosing.

---

<div class="post-metadata">

**Author:** ![iblack10](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/iblack10/32/1208_2.png) [@iblack10](https://community.transloadit.com/u/iblack10)\
**Post date:** [October 11, 2024, 8:08am UTC](https://community.transloadit.com/t/random-unknown-error-thrown-by-uppy/17227/4 "2024-10-11T08:08:36Z")

</div>

I haven’t been able to resolve the issue. I was never able to get recreate it myself and only had some logs and user reports to go on. If you can provide the Uppy team with a reproducible example that could definitely help them investigate!

---

<div class="post-metadata">

**Author:** ![David](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@David](https://community.transloadit.com/u/David)\
**Post date:** [March 13, 2025, 11:20am UTC](https://community.transloadit.com/t/random-unknown-error-thrown-by-uppy/17227/5 "2025-03-13T11:20:37Z")

</div>

I ran into an [Uppy] [%hh:mm%] Unknown error. It happened in the following conditions:

- Mobile Safari 18.3
- 4G network
- Single file upload with a total size of 527 MB
- AWS/S3 multipart upload with 100MB chunk size, not using Companion, but a custom endpoint that provides presigned URLs to the client
- Data uploaded to [Cloudflare R2 (S3-compatible)](https://developers.cloudflare.com/r2/api/s3/api/)
- The file upload was initially estimated to finish in less than 2 minutes (I have my own ETA calculating code based on the progress report)
- The file upload progress reported by uppy for this file later went backwards at various moments, e.g., from 37 to 10%, 53% to 26%, 75% to 5%, etc (numbers not super accurate), which caused confusion and the impression that the upload was never going to finish. Can this be caused by multiple network errors?
- The browser window performing the upload was put in the background after sometime during the upload (the user switched to another app), and when the user came back, the error (had?) occurred. It is not clear whether the app switch was necessary to trigger the error at this point, but I have not yet another error occurrence to contradict this hypothesis.
