ArchiSteamFarm: System.ArgumentNullException: Value cannot be null
Checklist
- I read and understood ASF’s Contributing guidelines
- I also read Setting-up and FAQ, I don’t need help, this is a bug report
- I don’t own more than 10 accounts in total
- I’m not using custom plugins
- This is not a question
- This is not a technical issue
- This is not ASF-ui problem
ASF version
Latest stable release
ASF variant
linux-arm64
Bug description
After the Steam maintenance on October 17th, 2023, ArchiSteamFarm is unable to start back up, reporting a FATAL log with System.ArgumentNullException: Value cannot be null. (Parameter 'webAPIUserNonce')
Full FATAL message below
2023-10-17 18:28:27|ArchiSteamFarm-11557|FATAL|ASF|OnUnhandledException() System.ArgumentNullException: Value cannot be null. (Parameter 'webAPIUserNonce')
at ArchiSteamFarm.Steam.Integration.ArchiWebHandler.Init(UInt64 steamID, EUniverse universe, String webAPIUserNonce, String parentalCode)
at ArchiSteamFarm.Steam.Bot.OnLoggedOn(LoggedOnCallback callback)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
2023-10-17 18:28:27|ArchiSteamFarm-11557|ERROR|ASF|Exit() Exiting with nonzero error code!
Expected behavior
ASF was expected to connect back to steam servers after the maintenance
Actual behavior
ASF automatically shuts down with a fatal error message.
Steps to reproduce
- Start ASF
Possible reason/solution
No response
Can you help us with this bug report?
No, I don’t have time, skills or willings for any of that
Full log.txt recorded during reproducing the problem
2023-10-17 18:28:14|ArchiSteamFarm-11557|INFO|ASF|InitCore() ArchiSteamFarm V5.4.10.3 (linux-arm64/73ae7e63-f6b5-4aa4-b6d0-a8fc4e25edae | .NET 7.0.11; debian.12-arm64; Linux 6.1.0-13-arm64 #1 SMP Debian 6.1.55-1 (2023-09-29))
2023-10-17 18:28:14|ArchiSteamFarm-11557|INFO|ASF|InitCore() Copyright © 2015-2023 JustArchiNET
2023-10-17 18:28:18|ArchiSteamFarm-11557|INFO|ASF|InitPlugins() Initializing Plugins...
2023-10-17 18:28:18|ArchiSteamFarm-11557|INFO|ASF|InitPlugins() Loading ItemsMatcherPlugin V5.4.10.3...
2023-10-17 18:28:18|ArchiSteamFarm-11557|INFO|ASF|InitPlugins() ItemsMatcherPlugin has been loaded successfully!
2023-10-17 18:28:18|ArchiSteamFarm-11557|INFO|ASF|InitPlugins() Loading MobileAuthenticatorPlugin V5.4.10.3...
2023-10-17 18:28:18|ArchiSteamFarm-11557|INFO|ASF|InitPlugins() MobileAuthenticatorPlugin has been loaded successfully!
2023-10-17 18:28:18|ArchiSteamFarm-11557|INFO|ASF|InitPlugins() Loading SteamTokenDumperPlugin V5.4.10.3...
2023-10-17 18:28:18|ArchiSteamFarm-11557|INFO|ASF|InitPlugins() SteamTokenDumperPlugin has been loaded successfully!
2023-10-17 18:28:18|ArchiSteamFarm-11557|INFO|ASF|UpdateAndRestart() ASF will automatically check for new versions every 1 day.
2023-10-17 18:28:18|ArchiSteamFarm-11557|INFO|ASF|Update() Checking for new version...
2023-10-17 18:28:20|ArchiSteamFarm-11557|INFO|ASF|Update() Local version: 5.4.10.3 | Remote version: 5.4.10.3
2023-10-17 18:28:20|ArchiSteamFarm-11557|INFO|ASF|Load() Loading STD global cache...
2023-10-17 18:28:21|ArchiSteamFarm-11557|INFO|ASF|Load() Validating STD global cache integrity...
2023-10-17 18:28:22|ArchiSteamFarm-11557|INFO|ASF|OnASFInit() SteamTokenDumperPlugin has been initialized successfully, thank you in advance for your help. The first submission will happen in approximately 14 minutes from now.
2023-10-17 18:28:22|ArchiSteamFarm-11557|INFO|ASF|Start() Starting IPC server...
2023-10-17 18:28:24|ArchiSteamFarm-11557|INFO|Microsoft.Hosting.Lifetime|Now listening on: http://0.0.0.0:1242
2023-10-17 18:28:24|ArchiSteamFarm-11557|INFO|Microsoft.Hosting.Lifetime|Application started. Press Ctrl+C to shut down.
2023-10-17 18:28:24|ArchiSteamFarm-11557|INFO|Microsoft.Hosting.Lifetime|Hosting environment: Production
2023-10-17 18:28:24|ArchiSteamFarm-11557|INFO|Microsoft.Hosting.Lifetime|Content root path: /home/asf/ArchiSteamFarm
2023-10-17 18:28:24|ArchiSteamFarm-11557|INFO|ASF|Start() IPC server ready!
2023-10-17 18:28:25|ArchiSteamFarm-11557|INFO|Floofie2|Start() Starting...
2023-10-17 18:28:25|ArchiSteamFarm-11557|INFO|Floofie4|Start() Starting...
2023-10-17 18:28:25|ArchiSteamFarm-11557|INFO|Floofie3|Start() Starting...
2023-10-17 18:28:25|ArchiSteamFarm-11557|INFO|Floofie|Start() Starting...
2023-10-17 18:28:25|ArchiSteamFarm-11557|INFO|Floofie2|Connect() Connecting...
2023-10-17 18:28:26|ArchiSteamFarm-11557|INFO|Floofie2|OnConnected() Connected to Steam!
2023-10-17 18:28:26|ArchiSteamFarm-11557|INFO|Floofie2|OnConnected() Logging in...
2023-10-17 18:28:27|ArchiSteamFarm-11557|INFO|Floofie2|OnLoggedOn() Successfully logged on as 76561198847579175/Floofie2.
2023-10-17 18:28:27|ArchiSteamFarm-11557|FATAL|ASF|OnUnhandledException() System.ArgumentNullException: Value cannot be null. (Parameter 'webAPIUserNonce')
at ArchiSteamFarm.Steam.Integration.ArchiWebHandler.Init(UInt64 steamID, EUniverse universe, String webAPIUserNonce, String parentalCode)
at ArchiSteamFarm.Steam.Bot.OnLoggedOn(LoggedOnCallback callback)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
2023-10-17 18:28:27|ArchiSteamFarm-11557|ERROR|ASF|Exit() Exiting with nonzero error code!
2023-10-17 18:28:27|ArchiSteamFarm-11557|INFO|Microsoft.Hosting.Lifetime|Application is shutting down...
Global ASF.json config file
No response
BotName.json config of all affected bot instances
No response
Additional info
No response
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Reactions: 28
- Comments: 49 (4 by maintainers)
Commits related to this issue
- Fix 3029 Temporary https://github.com/JustArchiNET/ArchiSteamFarm/issues/3029 — committed to chr233/ArchiSteamFarm by chr233 8 months ago
After today’s maintenance, Steam stopped sending web token nonce - something that is required for establishing web session and making ASF work. Fortunately we can ask for that token regardless whether or not it arrives in the callback, which is what my fix above actually does, fixing the underlying issue.
Fixed in V5.4.11.3, which will be released and promoted to stable shortly. Since this crash happens after bots are being started, and update procedure normally happens before bots initialization, launching old version will suffice the moment new release is available.
Thanks for report and details! 👍
Just skip the null check here, and it works
where fix ?? do fast
same in win x64
This started after the weekly maintenance an hour ago.
also in win X64
I can report that the issue is happening on the arm64 macOS build as well. Trying the latest pre-release version results in the same issue.
EDIT: Spun up an x86-64 Debian 12 VM, same issue.
push now ppl wait
This seems to be a general issue regardless the SO nor the version of the program. Let’s try to keep this issue as clean as possible by posting only useful information.
Devs might be already working on a solution, don’t panic.
If you need to follow this issue, there’s a Subscribe button on the right panel (If you’re on web), or in the three dots menu (on Mobile)
It seems to be fixed in 5.4.11.4: https://github.com/JustArchiNET/ArchiSteamFarm/releases/tag/5.4.11.4
Thank you ASF team and contributors for a quick support.
Works fine for me, nothing like that is required. I don’t know what you’re using, but if official release and not some hotfixed by other people than me then open new issue with log and all required details, this issue is done with.
+1
Lmfao I thought I was going crazy… I was googling keywords for the past hour or so and reading so many articles.
Tried so many different things to fix it, did some trial and error using multiple new vps iterations… new accounts, new configs, new releases… and I’m an idiot because only THEN did I decide I’d go look in the issues section. doy
+1
The same thing on Windows 10 X 64. Reinstalling and re-logging into accounts did not help.
Same on Docker version.
Encountering same issue on Linux armx64 and winx64 just after confirming steam guard or entering steam guard code. Both worked perfectly earlier today, now both giving the same error. Even on brand new install with correct dependencies. Full windows log attached.
Tested ASF 5.4.0.3 to ASF 5.4.10.3, all have the same issue
+1
Same error on docker ARM
Same here, Windows 11 pro x64.
Thanks for the quick release of v5.4.11.4 It did just update and fix itself.
I think by now we have enough information to prove something happened after yesterday’s maintenance window, and it’s not a problem with the operating system or architecture. And we do have a band-aid fix. Since this seems to be related to the Web API component of the handler. Beyond assuming the main developer(s) are on the case, how could we validate against the Steam API? stuff like SteamDB and ProtonDB must have failed in similar ways now, or in the past, surely.
+1
+1
I just had this problem too Windows 10 x64