JustArchiNET / ArchiSteamFarm

C# application with primary purpose of farming Steam cards from multiple accounts simultaneously.
Apache License 2.0
11.04k stars 1.04k forks source link

ArchiSteamFarm is unable to generate Web API Keys anymore #3084

Closed nolddor closed 9 months ago

nolddor commented 9 months ago

Checklist

ASF version

Latest stable release

ASF variant

linux-x64

Bug description

It looks like today Valve roll out a new change so in order to create a Web API Key, a mobile confirmation is needed. Refers to https://twitter.com/zerguet/status/1730531743575208386

Expected behavior

ArchiSteamFarm must be able to auto-generate a Web API Key when not present as it is a mandatory requirement for ASF to query some internal APIs

Actual behavior

An error is thrown on the logs:

2023-12-01 18:59:44|ArchiSteamFarm-728438|ERROR|BotName|ResolveApiKey() Received unknown value for State, please report this: NotRegisteredYet 

Steps to reproduce

  1. Navigate to https://steamcommunity.com/dev/apikey en delete any existing Web API (if any)
  2. Start up ArchiSteamFarm from scratch or do a !restart
  3. You will see the error within the logs.

Possible reason/solution

A recent change at Valve side as per https://twitter.com/zerguet/status/1730531743575208386 that requires source code rework to auto-confirm the Web API Key generation, refers to: https://github.com/JustArchiNET/ArchiSteamFarm/blob/9699686da5b3d3f6fca131b1b22be4e75525bb99/ArchiSteamFarm/Steam/Integration/ArchiWebHandler.cs#L2595

Can you help us with this bug report?

Somehow, I can test and offer feedback, but can't code

Full log.txt recorded during reproducing the problem

N/A

Global ASF.json config file

N/A

BotName.json config of all affected bot instances

N/A

Additional info

JustArchi commented 9 months ago

Thanks for report, I've addressed this with a warning and automatic registration (if possible) :trophy:

JustArchi commented 8 months ago

Update: follow-up on this issue includes complete API keys removal, I'm leaving this note mainly for people digging into the issue wondering about current state of API keys in ASF.

https://github.com/JustArchiNET/ArchiSteamFarm/commit/27f965d4af4e54961e33de18f41636387d0f3580 https://github.com/JustArchiNET/ArchiSteamFarm/commit/fa74d98879994c419b2de2ac220f16f175fef749