Page 1 of 1

One more mod upload - Status Invalid / Unknown error

Posted: Mon May 13, 2019 12:47 pm
by mk-fg
Hi,

Same error as other people had here, looking like this:
Image

This happened to upload after relatively minor control.lua changes, without changing thumbnail, files' encoding, layout, etc.
I've done similar changes four days in a row and it worked without issue for three days, but same exact packing/process didn't work today, which suggests that it might be related to a very recent Mod Portal changes, if that's of any help.
(if relevant, mod change diff can be found here - https://github.com/mk-fg/games/commit/c ... 580291ca02 )

Things that I've tried to rule-out:
- thumbnail.png - tried both removing it and running "mogrify thumbnail.png" (which fixes gimp color profile issue), didn't help, and it passed the check yesterday anyway.
- Archive errors - using "zip -r mod-ver.zip mod-ver", not "git archive", all slashes are forward ones, "unzip -l" shows no abnormalities, packing it on linux.
- Leading or trailing garbage bytes like "UTF-8 BOM" - none in any .lua files or info.json, all files end in newline, all that enforced by emacs here anyway.
- Extra files like README.md and doc/ dir in zip - tried removing all these, leaving only essential files, didn't help.
- Browser uBlock/uMatrix extensions blocking stuff by mistake on Mod Portal - checked with both disabled, didn't help.

Probably forgetting something else in the list above, but ideally error will be somewhat more descriptive, so one don't have to do such dance, of course.
Not sure what else to try here, except waiting for a day or few and trying again later.

Thanks in advance for any info on this.

Unsolicited suggestions:
- When adding new check or error handling to UI code, have mandatory "reason for user" field there ("reason X-100345" will do, if have to be secret), even if it's host filesystem error or something. If such check is done when iterating over mod files, always have filename formatted into that reason msg.
- If "Unknown error" happens with hidden reason (either due to oversight or secrecy), display e.g. first 8 chars of base64-encoded hash of the actual exception type, error msg or check type, with the idea to at least have these errors non-ambiguous, so that when user is checking through a dozen forum threads about such errors, they can at least tell which one is theirs (if any).

[Mod Portal] Can't upload any mod updates.

Posted: Mon May 13, 2019 3:02 pm
by Earendel
I'm trying to update mods but it fail immediately on starting the upload connection. I'm using chrome, the network tab console shows an error:
bundle-a6be3700d7fcd7341fe7.cache.js:1 OPTIONS https://direct.mods-data.factorio.com/u ... 1i5lOdUpaM net::ERR_CERT_DATE_INVALID
Has the SSL certificate expired?

Re: [Mod Portal] Can't upload any mod updates.

Posted: Mon May 13, 2019 3:04 pm
by mexmer
seems it doesn't affect only upload, also some content is missing, due cloudflare not proxying server with expired certificate

Re: [Mod Portal] Can't upload any mod updates.

Posted: Mon May 13, 2019 6:15 pm
by NONOCE
I'm having the same problem. I get an unknown error message when I try to upload a mod update.

Re: [Mod Portal] Can't upload any mod updates.

Posted: Mon May 13, 2019 6:25 pm
by mk-fg
Thanks for the info.
Have been the issue for me as well, and enabling VPN through other country seem to have fixed it - mod upload worked.

Re: [Mod Portal] Can't upload any mod updates.

Posted: Tue May 14, 2019 11:45 am
by Sanqui
Fixed, sorry for the trouble.