[2.1.7] Cannot login using in-game GUI

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
theotherspica
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Oct 22, 2024 3:52 pm

[2.1.7] Cannot login using in-game GUI

Post by theotherspica »

When logging into the game using a username + token, the game fails to authenticate. When manually entering the token in player-data.json it works properly. I tried several times to enter the token, both using copy-paste as well as manually typing it. Problem persists in both cases.
OS: Linux
Purchased from: Steam
Factorio version: 2.1.7 with expansion. Standalone version downloaded from website.

factorio-current.log (when logging in from in-game GUI):

Code: Select all

[---snip---]
   9.719 Factorio initialised
   9.722 Info AuthServerConnector.cpp:620: Performing TLS check.
   9.722 Info HttpSharedState.cpp:57: Downloading https://auth.factorio.com/tls-check/success
  10.222 Info AuthServerConnector.cpp:653: TLS check success.
  26.932 Info HttpSharedState.cpp:57: Downloading https://auth.factorio.com/api-login?api_version=6
  27.425 Info AuthServerConnector.cpp:70: Auth server returned error: {"data":{},"error":"login-failed","message":"Given username or email and password do not match any account"}

  45.752 Quitting: user-quit.
  45.980 Goodbye
factorio-previous.log (when setting "service-token" in "player-data.json"):

Code: Select all

[---snip---]
  10.338 Factorio initialised
  10.340 Info AuthServerConnector.cpp:620: Performing TLS check.
  10.340 Info HttpSharedState.cpp:57: Downloading https://auth.factorio.com/tls-check/success
  10.984 Info AuthServerConnector.cpp:653: TLS check success.
  10.984 Info HttpSharedState.cpp:57: Downloading https://updater.factorio.com/updater/get-available-versions?username=<private>&token=<private>&apiVersion=2
  11.901 0 packages available to download (experimental updates enabled).
  31.357 Quitting: user-quit.
  31.614 Goodbye
Attachments
factorio-previous.log
(7.76 KiB) Not downloaded yet
factorio-current.log
(8.76 KiB) Downloaded 1 time
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 796
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: [2.1.7] Cannot login using in-game GUI

Post by raiguard »

You say you're logging in with username + token. The in-game GUI needs your account password, not your internal token. Please make sure you're using your password.
Don't forget, you're here forever.
theotherspica
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Oct 22, 2024 3:52 pm

Re: [2.1.7] Cannot login using in-game GUI

Post by theotherspica »

I purchased the game via Steam, and I login to factorio.com using Steam OAuth. So, my account does not have any password set. A blank password also doesn't successfully login.
Unfortunately I don't remember how I logged in successfully the first time ~3 years ago. If it helps, I used to launch the game via Steam; now I use the standalone version. My best guess as to what happened is that I migrated the player-data.json from my old Steam install to the new one and have now forgotten that I did, so the token is still being used. Though that does mean that the game has no way of manually authenticating via Steam OAuth without a factorio.com password.

Feel free to close the bug report. I'll just use the workaround of manually editing player-data.json; I don't want to create a password.
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 796
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: [2.1.7] Cannot login using in-game GUI

Post by raiguard »

Fascinating edge case! If you don't want to create a password, then yeah, the only way will be continuing to enter your token in the player-data.json file. The standalone version of the game is entirely divorced from steam so it can't sign in with steam oauth.

Moving to technical help.
Don't forget, you're here forever.
Post Reply

Return to “Technical Help”