Page 1 of 1

Mod upload api is returning an Axios Network Error

Posted: Sun Sep 21, 2025 5:08 pm
by TheKingJo
I tried uploading a 195 MB mod to the portal on 3 different days and on 2 different devices in separate networks with different upload speeds and all ended in the attached error.

Before I tried the first time, I uploaded 3 way smaller mods and it worked fine so I suspect the file size being a problem

Re: Mod upload api is returning an Axios Network Error

Posted: Mon Sep 22, 2025 9:53 am
by vinzenz
Unfortunately uploads to the mod portal must be completed in 30s before a timeout drops the connection.

Re: Mod upload api is returning an Axios Network Error

Posted: Mon Sep 22, 2025 4:07 pm
by TheKingJo
vinzenz wrote: Mon Sep 22, 2025 9:53 am Unfortunately uploads to the mod portal must be completed in 30s before a timeout drops the connection.
Hmm that's unfortunate. That would mean 200 MB / 30 sec = 6.66 MB/s = 53.33 Mbit/s would need to be my internet speed but I only have ~20.

Now I don't know what upload speeds people usually have available, but in my opinion, this system of just dropping a connection after a certain time seems like a pretty unwise idea. After all it do be transmitting data. On top of that the mod portal states 262.1 MB as the maximum file size which seems rather pointless after knowing about this strict timeout limit.

I dunno if you guys can adjust that number, but if not, that means I'd have to find a network with sufficiant upload speed to simply upload a bigger mod XD

Also:
10 months ago I was updating one of my mods with a file size of 158.2 MB and it was working fine. (I had the same rig and network) Was the backend different there or is mod submission handled differently than mod updating? Because if it is, that just means initial uploads have to respect the time frame ^^

Re: Mod upload api is returning an Axios Network Error

Posted: Mon Sep 22, 2025 6:49 pm
by eugenekay
TheKingJo wrote: Mon Sep 22, 2025 4:07 pmOn top of that the mod portal states 262.1 MB as the maximum file size which seems rather arbitrary after knowing about this strict timeout limit.
Base-2-vs-Base-10 conversions strike again!

Assuming that the base units are actually the IEC Standard “Kibibytes” (exactly 1024 bytes), calculating “256 x 1024” yields 262,144. Dividing by 1000 yields “262.1 MB”, after rounding. This is not strictly correct either, since there are only 1000 Bytes in a standard “Kilobyte”. Converting “256MiB” properly becomes “268.4 MB”.

Good Luck!

Re: Mod upload api is returning an Axios Network Error

Posted: Mon Sep 22, 2025 8:18 pm
by TheKingJo
Yeah maybe arbitrary was the wrong word. Wanted to say its pointless, not random.

Re: Mod upload api is returning an Axios Network Error

Posted: Mon Sep 22, 2025 9:31 pm
by robot256
I was going to make a comment about how as a user, it's nice when mod packages are smaller in size, with graphics split up so that logic updates don't take so long to download. Then I noticed that it's King Jo we are talking about, and understand the concern :lol:

Re: Mod upload api is returning an Axios Network Error

Posted: Mon Sep 22, 2025 10:34 pm
by TheKingJo
robot256 wrote: Mon Sep 22, 2025 9:31 pm I was going to make a comment about how as a user, it's nice when mod packages are smaller in size, with graphics split up so that logic updates don't take so long to download. Then I noticed that it's King Jo we are talking about, and understand the concern :lol:
xd

well tbh this mod is actually quite big because its a train (256 rotations) which is quite large in screen size. But I've already split up all my vehicle mods in a way that its basically all just graphic mods and the entity master assembles the stuff when the mods are activated. So essentially it's already split up just as you said ^^

Re: Mod upload api is returning an Axios Network Error

Posted: Tue Sep 23, 2025 5:34 am
by vinzenz
TheKingJo wrote: Mon Sep 22, 2025 4:07 pm
vinzenz wrote: Mon Sep 22, 2025 9:53 am Unfortunately uploads to the mod portal must be completed in 30s before a timeout drops the connection.
Hmm that's unfortunate. That would mean 200 MB / 30 sec = 6.66 MB/s = 53.33 Mbit/s would need to be my internet speed but I only have ~20.

Now I don't know what upload speeds people usually have available, but in my opinion, this system of just dropping a connection after a certain time seems like a pretty unwise idea. After all it do be transmitting data. On top of that the mod portal states 262.1 MB as the maximum file size which seems rather pointless after knowing about this strict timeout limit.

I dunno if you guys can adjust that number, but if not, that means I'd have to find a network with sufficiant upload speed to simply upload a bigger mod XD

Also:
10 months ago I was updating one of my mods with a file size of 158.2 MB and it was working fine. (I had the same rig and network) Was the backend different there or is mod submission handled differently than mod updating? Because if it is, that just means initial uploads have to respect the time frame ^^
It's a technical limitation by our hosting platform and it's been like this for a few years already. I think a lot of people with large mods on the mod portal use github actions or other cloud based CI with plenty of bandwidth for their mod uploads.

Nevertheless I already built a separate service for the Galaxy of Fame uploads to bypass this limitation and I'll eventually move mod portal uploads over to this system as well.