Page 1 of 1

[ModPortal] Cannot update mod

Posted: Sat Jan 20, 2018 6:56 pm
by Earendel
I cannot update my mod.

https://mods.factorio.com/mod/alien-biomes

Error: Access forbidden. Please refresh the page and try again. (code: 403)

It says it's a 403 error but I'm logged in. I've tried logging out and in then re-uploading several times. I've even tried a new incognito browser window.

I've tried repackaging the zip file, it's not much different from one I uploaded a few days ago.

The file I'm trying to upload is here: https://drive.google.com/open?id=1LyvKO ... 9XE_PO6Vjk
I'm using Chrome 63.0.3239.132 on Windows 10.

Re: [ModPortal] Cannot update mod

Posted: Mon Jan 22, 2018 1:05 pm
by HanziQ
This is strange, can you see any errors in the javascript console in developer tools?

Re: [ModPortal] Cannot update mod

Posted: Mon Jan 22, 2018 3:23 pm
by Earendel

Code: Select all

mods-data.factorio.c…st_u-Rv0wBYd1tfmw:1 POST https://mods-data.factorio.com/upload/mod/eyJhbGciOiJIUzI1NiIsImlhdCI6MTUxN…ZHJld2xlY29udGVAZ21haWwuY29tIg.27jcLi1ql4snMnEeAH9ZwQYwwUst_u-Rv0wBYd1tfmw 403 (FORBIDDEN)

create_edit.js:74 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>403 Forbidden</title>
<h1>Forbidden</h1>
<p>You don't have the permission to access the requested resource. It is either read-protected or not readable by the server.</p>

create_edit.js:75 403

create_edit.js:76 
{content-type: "text/html"}
content-type
:
"text/html"
__proto__
:
Object

create_edit.js:94 
{adapter: ƒ, transformRequest: {…}, transformResponse: {…}, timeout: 0, xsrfCookieName: "XSRF-TOKEN", …}
adapter
:
ƒ (e)
data
:
FormData {}
headers
:
{Accept: "application/json, text/plain, */*"}
maxContentLength
:
-1
method
:
"post"
onUploadProgress
:
ƒ (e)
timeout
:
0
transformRequest
:
{0: ƒ}
transformResponse
:
{0: ƒ}
url
:
"https://mods-data.factorio.com/upload/mod/eyJhbGciOiJIUzI1NiIsImlhdCI6MTUxNjYzMjk0OCwiZXhwIjoxNTE2NjMzNTQ4fQ.ImFuZHJld2xlY29udGVAZ21haWwuY29tIg.27jcLi1ql4snMnEeAH9ZwQYwwUst_u-Rv0wBYd1tfmw"
validateStatus
:
ƒ (e)
xsrfCookieName
:
"XSRF-TOKEN"
xsrfHeaderName
:
"X-XSRF-TOKEN"
__proto__
:
Object
It fails on 100% upload progress, but that does take a while so maybe the authentication has expired at that point?

Re: [ModPortal] Cannot update mod

Posted: Mon Jan 22, 2018 6:30 pm
by Earendel
I can update the text plates mod,

The notable difference between mods are:
Filesize
Time for upload to complete.
Alien Biomes does not have anything selected in the Licence dropdown select, as it uses a special licence.

Selecting blank licence is not even an option on the Text Plates mod. The licence section of the mod portal looks different, maybe the new portal is not supporting special licences properly?

Re: [ModPortal] Cannot update mod

Posted: Mon Jan 22, 2018 6:48 pm
by HanziQ
How long does the upload take? The tokens expire in 10 minutes I think, so that would cause this.

Re: [ModPortal] Cannot update mod

Posted: Mon Jan 22, 2018 9:18 pm
by Earendel
It took over 10 minutes, maybe a little over 20. That wasn't a problem a couple of weeks ago.

Re: [ModPortal] Cannot update mod

Posted: Tue Jan 23, 2018 8:36 am
by HanziQ
I increased the timeout to 20 minutes. If that's not enough, you'll need to upload it from somewhere with faster internet.

Re: [ModPortal] Cannot update mod

Posted: Tue Jan 23, 2018 7:20 pm
by Earendel
The upload is finishing so 20 minutes is enough, thanks.

But now there's an error that pops up, this is not like the previous 403 error that sits in a block with the main page content.
error.jpg
error.jpg (156.7 KiB) Viewed 3399 times
This is the licence setting. The selected option looks blank but there is a value selected.
licence.jpg
licence.jpg (19.47 KiB) Viewed 3399 times
The html on the page for the selected option is:

Code: Select all

<option selected="" value="custom"></option>
I haven't modified this or changed the selection, it's what's already there when I go to the edit page.

I would probably work if I selected a different option, it worked with text plates, but I'm not prepared to release this mod under any of the other licence options so this is blocking further updates.

Re: [ModPortal] Cannot update mod

Posted: Wed Jan 24, 2018 11:55 am
by HanziQ
Should be fixed

Re: [ModPortal] Cannot update mod

Posted: Wed Jan 24, 2018 12:49 pm
by Earendel
It works!

Thanks HanziQ

Re: [ModPortal] Cannot update mod

Posted: Sun Apr 01, 2018 1:04 am
by DellAquila
unfortunately, here in Brazil the upload is very slow for the portal, and when the mod is above 45MB it is impossible to upload :(