Mod upload api is returning an Axios Network Error

A place to talk about the official Factorio mod portal (https://mods.factorio.com)
User avatar
TheKingJo
Inserter
Inserter
Posts: 22
Joined: Sat Jan 02, 2021 1:22 am
Contact:

Mod upload api is returning an Axios Network Error

Post 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
Attachments
error.jpg
error.jpg (10.42 KiB) Viewed 467 times
User avatar
vinzenz
Factorio Staff
Factorio Staff
Posts: 367
Joined: Mon Aug 02, 2021 6:45 pm
Contact:

Re: Mod upload api is returning an Axios Network Error

Post by vinzenz »

Unfortunately uploads to the mod portal must be completed in 30s before a timeout drops the connection.
bringing the oops to devops
User avatar
TheKingJo
Inserter
Inserter
Posts: 22
Joined: Sat Jan 02, 2021 1:22 am
Contact:

Re: Mod upload api is returning an Axios Network Error

Post 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 ^^
Last edited by TheKingJo on Mon Sep 22, 2025 8:17 pm, edited 1 time in total.
eugenekay
Filter Inserter
Filter Inserter
Posts: 726
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: Mod upload api is returning an Axios Network Error

Post 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!
User avatar
TheKingJo
Inserter
Inserter
Posts: 22
Joined: Sat Jan 02, 2021 1:22 am
Contact:

Re: Mod upload api is returning an Axios Network Error

Post by TheKingJo »

Yeah maybe arbitrary was the wrong word. Wanted to say its pointless, not random.
robot256
Smart Inserter
Smart Inserter
Posts: 1274
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: Mod upload api is returning an Axios Network Error

Post 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:
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.
User avatar
TheKingJo
Inserter
Inserter
Posts: 22
Joined: Sat Jan 02, 2021 1:22 am
Contact:

Re: Mod upload api is returning an Axios Network Error

Post 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 ^^
User avatar
vinzenz
Factorio Staff
Factorio Staff
Posts: 367
Joined: Mon Aug 02, 2021 6:45 pm
Contact:

Re: Mod upload api is returning an Axios Network Error

Post 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.
bringing the oops to devops
Post Reply

Return to “Mod portal Discussion”