-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Large Files fail to upload #46
Comments
I don't believe I've seen this before, maybe raise your requestTimeout in config.json? |
Good point... |
how large should i make it? |
Whatever you think would work. Also, what branch are you on? Are you on a non-master/stable branch? Are you cloning a file? |
I'm on the main branch/i cloned the git |
is the timeout in ms? |
Yeah. I'm not sure how Discord.js uploads the files, but I do believe I got a different error for timeouts... could be different now, though If boosting requestTimeout doesn't fix it, maybe decrease your Discord file size? That fixed some issues on the main instances The only place I know undici is used in is axios, so it could also be an issue with the file you're trying to clone |
i already decreased |
Wait I misunderstood the cloning file question, I'm trying to upload a file from my pc (the file just contains |
That's... really weird. I'll check DJS's codebase when I have time. How fast is your internet? |
The server has 1gbit/s (up/down), I have 30mbit/s up |
I'll be honest... I have zero idea of what's happening.
|
Maybe some kind of discord limitation? |
I know @Jack5079 got it to work with 10MiB chunks, and I'm not sure what's limiting you. What provider are you using for your server? I just tested an upload on the main instance, so I know it's still working... |
I'm using a dedicated server from hetzner
|
It should already be fixed discordjs/discord.js#8679 |
Hetzner was apparently banned from Discord's API once, but I'm not sure if this is still true, and the fact that you're getting a timeout over an actual proper error is strange. Try running locally or with another provider and see if that works, maybe...? |
interestingly i can upload small files, but not large ones |
Try uploading a file in the 10MiB range, then a file in the 100MiB+ range, and we'll see how that plays out...? |
|
Trying 500MB again |
now i get http error 504 and no error in the console <html>
<head>
<title>504 Gateway Time-out</title>
</head>
<body>
<center>
<h1>504 Gateway Time-out</h1>
</center>
<hr>
<center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page --><!-- a padding to disable MSIE and Chrome friendly error page --><!-- a padding to disable MSIE and Chrome friendly error page --><!-- a padding to disable MSIE and Chrome friendly error page --><!-- a padding to disable MSIE and Chrome friendly error page --><!-- a padding to disable MSIE and Chrome friendly error page --> |
Your server's just taking a while to upload the file after it receives it; fix your timeout in NGINX or just refresh your files page if you have an account until it finishes uploading FYI, your admin account is |
i already changed the admin password and how long should i make the timeout? |
...Longer than it is currently? |
Tried 700MB and error 500 (HeadersTimeoutError) is back... |
it seems to be a discord issue |
Maybe progressively uploading instead of bulk uploading the files could help? |
As in, one file per message, or streaming uploads to Discord? |
i meant like one file per message and maybe also upload streaming |
Prooooooooobably fixed with upload streaming i'll close this now |
I mean I managed a 10gb file on the api-v1 test instance and pfile is serving 250gb of data now so I think we're good |
when i try to upload a large file (in my case 500MiB)
i get the following error
The text was updated successfully, but these errors were encountered: