[ModPortal] Cannot update mod

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
Earendel
Factorio Staff
Factorio Staff
Posts: 711
Joined: Sun Nov 23, 2014 11:57 am
Contact:

[ModPortal] Cannot update mod

Post 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.

User avatar
HanziQ
Former Staff
Former Staff
Posts: 630
Joined: Fri Mar 27, 2015 7:07 am
Contact:

Re: [ModPortal] Cannot update mod

Post by HanziQ »

This is strange, can you see any errors in the javascript console in developer tools?

User avatar
Earendel
Factorio Staff
Factorio Staff
Posts: 711
Joined: Sun Nov 23, 2014 11:57 am
Contact:

Re: [ModPortal] Cannot update mod

Post 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?

User avatar
Earendel
Factorio Staff
Factorio Staff
Posts: 711
Joined: Sun Nov 23, 2014 11:57 am
Contact:

Re: [ModPortal] Cannot update mod

Post 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?

User avatar
HanziQ
Former Staff
Former Staff
Posts: 630
Joined: Fri Mar 27, 2015 7:07 am
Contact:

Re: [ModPortal] Cannot update mod

Post by HanziQ »

How long does the upload take? The tokens expire in 10 minutes I think, so that would cause this.

User avatar
Earendel
Factorio Staff
Factorio Staff
Posts: 711
Joined: Sun Nov 23, 2014 11:57 am
Contact:

Re: [ModPortal] Cannot update mod

Post by Earendel »

It took over 10 minutes, maybe a little over 20. That wasn't a problem a couple of weeks ago.

User avatar
HanziQ
Former Staff
Former Staff
Posts: 630
Joined: Fri Mar 27, 2015 7:07 am
Contact:

Re: [ModPortal] Cannot update mod

Post 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.

User avatar
Earendel
Factorio Staff
Factorio Staff
Posts: 711
Joined: Sun Nov 23, 2014 11:57 am
Contact:

Re: [ModPortal] Cannot update mod

Post 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 2728 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 2728 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.

User avatar
HanziQ
Former Staff
Former Staff
Posts: 630
Joined: Fri Mar 27, 2015 7:07 am
Contact:

Re: [ModPortal] Cannot update mod

Post by HanziQ »

Should be fixed

User avatar
Earendel
Factorio Staff
Factorio Staff
Posts: 711
Joined: Sun Nov 23, 2014 11:57 am
Contact:

Re: [ModPortal] Cannot update mod

Post by Earendel »

It works!

Thanks HanziQ

User avatar
DellAquila
Inserter
Inserter
Posts: 48
Joined: Fri Mar 16, 2018 2:54 pm
Contact:

Re: [ModPortal] Cannot update mod

Post 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 :(

Post Reply

Return to “Resolved Problems and Bugs”