APIError 408 When Uploading New Module

Hello, I’m trying to upload a module and am getting an API 408 error. I’m not sure what’s wrong this time. File size maybe?

How large is the file?

File size is 300.8 MB :frowning:

It’s slightly over the size limit. Have you already removed unused images?

I have. I can try to get it a little smaller. What’s the file size limit?

The current limit is 300MB.

If you’ve already removed all the unused images, there are two things I’d suggest:

  1. Run a PNG optimizer such as optipng over all the PNGs.
  2. Rezip the module at maximum compression.

If neither of those get you under 300MB, let me know.

1 Like

Hey Joel, I got file size down to 260mb. But I’m still getting this stupid API 408 error. I’ve double-checked the version number matches the file name. Is there something else I could be doing wrong? Feels like this new website is constantly fighting me…

Is there somewhere I can download the module so I can see it? (Note that I might be slow to act in the next few days because I’ll be traveling.)

Thanks Joel. The file is on my OneDrive: Microsoft OneDrive

I took a quick look at the module. I don’t see anything obviously wrong. I’m still tied up for a few more days so can’t really dig into this further until then. Try uploading the module again.

Thanks for responding. I tried again this evening. Still getting the same error. I signed out of VASSAL, re-signed in. That didn’t work either. I’m out of ideas…

I will get back to this, but maybe not for a few days due to my father having had an operation yesterday.

I have time now to pursue this problem. Please try uploading the file again and let me know when you’ve tried.

Thanks, Joel. I tried again. Got the same API Error 408.

I see this in the log:

2026-01-17T20:53:38.140321Z  INFO request{source=158.62.192.93 method=POST uri=http://vassalengine.org/v1/projects/Assault_Sicily_43_-_Gela_Beachhead/packages/Module/1.2.1/AssaultSicily1.2.1.vmod version=HTTP/2.0}: starting add_file
2026-01-17T20:53:38.141285Z  INFO request{source=158.62.192.93 method=POST uri=http://vassalengine.org/v1/projects/Assault_Sicily_43_-_Gela_Beachhead/packages/Module/1.2.1/AssaultSicily1.2.1.vmod version=HTTP/2.0}: created temp file uploads/atmp_7474557fd07ffd8d20696bf6d285e8541
2026-01-17T20:58:38.190932Z  INFO request{source=158.62.192.93 method=POST uri=http://vassalengine.org/v1/projects/Assault_Sicily_43_-_Gela_Beachhead/packages/Module/1.2.1/AssaultSicily1.2.1.vmod version=HTTP/2.0}: finished processing request latency=300052 ms status=408

The code logging the first two messages is here.

We see a log entry for created temp file but not wrote temp file, so the timeout happens between them, which is when the input is being hashed and written to disk.

I don’t understand how receiving the data, hashing it, and writing it to disk could fail to finish in 300s—that would make the transfer rate less than 1MB/s.

What upload speed do you typically see with your internet connection?

We have about as fast of an internet speed as our community has access to. It’s a fiber optic line. I couldn’t say exactly what our upload speed is, but it’s pretty fast.

-Joel

Search for check my internet speed and choose one of the options. Your internet service provide (ISP) may offer one too, which would not be a bad choice.

You may want to run the test a few times and around the time of the day you would normally do an upload.

Yours,
Christian_

1 Like

Thanks for checking that.

1 Like

I’m facing the same problem, with even fast internet connection:

File size is 216 MB.

EuropaCurrentMapV310.vmod

Daniel

1 Like