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
Mod upload api is returning an Axios Network Error
Mod upload api is returning an Axios Network Error
- Attachments
-
- error.jpg (10.42 KiB) Viewed 454 times
Re: Mod upload api is returning an Axios Network Error
Unfortunately uploads to the mod portal must be completed in 30s before a timeout drops the connection.
bringing the oops to devops
Re: Mod upload api is returning an Axios Network Error
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.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.
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 ^^
Last edited by TheKingJo on Mon Sep 22, 2025 8:17 pm, edited 1 time in total.
Re: Mod upload api is returning an Axios Network Error
Base-2-vs-Base-10 conversions strike again!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.
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
Yeah maybe arbitrary was the wrong word. Wanted to say its pointless, not random.
Re: Mod upload api is returning an Axios Network Error
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 

My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Re: Mod upload api is returning an Axios Network Error
xdrobot256 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![]()
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
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.TheKingJo wrote: Mon Sep 22, 2025 4:07 pmHmm 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.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.
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 ^^
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.
bringing the oops to devops