Closed CrazyDev05 closed 1 month ago
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?
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 maxDiscordFileSize
to 10485760
Wait I misunderstood the cloning file question, I'm trying to upload a file from my pc (the file just contains Hello \n
to test the upload)
Wait I misunderstood the cloning file question, I'm trying to upload a file from my pc (the file just contains
Hello \n
to test the upload)
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
and i still have the same error after changing the requestTimeout
to 10800000
(failed after 3.5 min)
The server has 1gbit/s (up/down), I have 30mbit/s up
and i still have the same error after changing the
requestTimeout
to10800000
(failed after 3.5 min)
I'll be honest... I have zero idea of what's happening.
git stash
, git checkout stable
, and git stash apply
is the best advice I can give here, but I doubt that'd work; master and stable aren't that different...
Maybe some kind of discord limitation?
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 Hardware:
It should already be fixed https://github.com/discordjs/discord.js/pull/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
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 -->
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 admin
, with a password of admin
. Make sure to reset it if you plan to make this instance public...
i already changed the admin password and how long should i make the timeout?
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...
Tried 700MB and error 500 (HeadersTimeoutError) is back...
Hmm.... how much RAM do you have? I may be stupid What's the maximum file size on your instance? I know this probably won't help much, but I'd like to know more.
I have no idea what's causing this...
it seems to be a discord issue
Maybe progressively uploading instead of bulk uploading the files could help?
Maybe progressively uploading instead of bulk uploading the files could help?
As in, one file per message, or streaming uploads to Discord? Upload streaming is set for monofile 2.0 (#16). If you'd like, we can add a maxFilesPerMessage parameter to config.json which would allow you to upload only one chunk at a time, which will likely be available in 2.0.
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