Page 1 of 1

[Download API] 403 Forbidden trying to download with token

Posted: Sun Oct 06, 2024 2:40 pm
by asdff45
Starting yesterday (Saturday, 5th October 2024) the download api is always returning Error 403-Forbidden when downloading factorio with username and token to authenticate.
Funnily it still works when opening the link in a browser where you are already logged in (i guess it uses the cookie auth instead of the parameters in that case, which causes the params to be ignored and the download to succeed)

Examples:
Open this link in a private browser tab, results in the error:

Code: Select all

https://www.factorio.com/get-download/1.1.110/alpha/win64-manual?username=asdff45&token=<token>
The Nix factorio package is also unable to download factorio cause of that.

Code: Select all

error: unable to download 'https://factorio.com/get-download/1.1.110/alpha/linux64?username=greaka&token=<miep>': HTTP error 403

       response body:

       <!doctype html>
       <html lang=en>
       <title>403 Forbidden</title>
       <h1>Forbidden</h1>
       <p>You don&#39;t have the permission to access the requested resource. It is either read-protected or not readable by the server.</p>

Re: [Download API] 403 Forbidden trying to download with token

Posted: Sun Oct 06, 2024 6:40 pm
by Sanqui
Sorry, I'll fix this tomorrow. For now you can work-around this by using the latest, stable, or experimental in place of 1.1.110 (all point towards 1.1.110 at the moment.)

Re: [Download API] 403 Forbidden trying to download with token

Posted: Mon Oct 07, 2024 11:08 am
by Sanqui
Fixed

Re: [Download API] 403 Forbidden trying to download with token

Posted: Tue Oct 08, 2024 9:16 am
by asdff45
Thank you