Archisteamfarm: ASF 2FA Invalid length for a Base-64 char array or string while accepting trades

Created on 2 Jul 2017  路  6Comments  路  Source: JustArchiNET/ArchiSteamFarm

I fully read and understood contributing guidelines of ASF available above, especially the point that GITHUB IS NOT TECHNICAL SUPPORT AND IT'S THE PLACE ONLY FOR ASF BUGS AND SUGGESTIONS.

I admit that THIS IS NOT A QUESTION OR TECHNICAL ISSUE caused by my lazyness of reading ASF wiki. I strongly believe that the bug I'm reporting here affects majority of ASF users, and the enhancement I'm suggesting could benefit ASF in long-run.

If my issue is not meeting contributing guidelines specified above, especially if it's a question or technical issue, please close my issue immediately - I won't complain.


Now that you read and understood the notice, pick appropriate bug/suggestion template and fill it with your issue.


Bug

Invalid length for a Base-64 char array or string while accepting trades.

Description

2017-07-02 20:23:12|mono-sgen-15651|ERROR|Main|GenerateConfirmationKey() System.FormatException: Invalid length for a Base-64 char array or string.
  at System.Convert.FromBase64_Decode (System.Char* startInputPtr, System.Int32 inputLength, System.Byte* startDestPtr, System.Int32 destLength) [0x001db] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Convert.FromBase64CharPtr (System.Char* inputPtr, System.Int32 inputLength) [0x00031] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Convert.FromBase64String (System.String s) [0x00025] in <a07d6bf484a54da2861691df910339b1>:0 
  at ArchiSteamFarm.MobileAuthenticator.GenerateConfirmationKey (System.UInt32 time, System.String tag) [0x00020] in <4fa4e084d391442aa9cc69821de44732>:0  
2017-07-02 20:23:12|mono-sgen-15651|ERROR|Main|GenerateConfirmationKey() IdentitySecret is invalid!
2017-07-02 20:23:12|mono-sgen-15651|ERROR|Main|GetConfirmations() confirmationHash is null!

Expected behavior

Accept the trades.

Actual behavior

Throw an System.FormatException.

Steps to reproduce

Full log.txt recorded during reproducing the problem

2017-07-02 20:23:01|mono-sgen-15651|INFO|Main|ParseTrade() Accepting trade: 2262804812
2017-07-02 20:23:07|mono-sgen-15651|INFO|Main|ParseTrade() Accepting trade: 2262774666
2017-07-02 20:23:12|mono-sgen-15651|ERROR|Main|GenerateConfirmationKey() System.FormatException: Invalid length for a Base-64 char array or string.
  at System.Convert.FromBase64_Decode (System.Char* startInputPtr, System.Int32 inputLength, System.Byte* startDestPtr, System.Int32 destLength) [0x001db] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Convert.FromBase64CharPtr (System.Char* inputPtr, System.Int32 inputLength) [0x00031] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Convert.FromBase64String (System.String s) [0x00025] in <a07d6bf484a54da2861691df910339b1>:0 
  at ArchiSteamFarm.MobileAuthenticator.GenerateConfirmationKey (System.UInt32 time, System.String tag) [0x00020] in <4fa4e084d391442aa9cc69821de44732>:0  
2017-07-02 20:23:12|mono-sgen-15651|ERROR|Main|GenerateConfirmationKey() IdentitySecret is invalid!
2017-07-02 20:23:12|mono-sgen-15651|ERROR|Main|GetConfirmations() confirmationHash is null!

Global ASF.json config

Paste here

BotName.json config of all affected bot instances (if more than one)

Paste here
Ensure that config has hidden/redacted SteamLogin and SteamPassword properties.

Additional info


Suggestion

Purpose

How can ASF users benefit from this suggestion?

Why currently available solutions are not sufficient?

Does your suggestion fall into ASF scope?

Is your suggestion abiding to Steam ToS?

Additional info

Not a bug Won't fix

Most helpful comment

It's an issue of ios-steamguard-extractor, if anyone have the same problem, check this one:

https://github.com/CaitSith2/ios-steamguard-extractor/issues/1

All 6 comments

Please review the guidelines for contributing to this repository.

https://github.com/JustArchi/ArchiSteamFarm/blob/master/CONTRIBUTING.md

If my issue is not meeting contributing guidelines specified above, especially if it's a question or technical issue, please close my issue immediately - I won't complain.

Reason for closing: technical issue is not ASF bug. You supplied invalid ASF 2FA credentials.

I've tried to import the same maFile into WinAuth, it works well. But it does not work with ASF 2FA

Confirmations in WinAuth won't work either. And !2fa will work for you too.

I see the identity_secret in my maFile is a string of 17-digits number, is it in wrong format?

ASF GitHub is not technical support. If you want to receive one then move onto proper channel.

It's an issue of ios-steamguard-extractor, if anyone have the same problem, check this one:

https://github.com/CaitSith2/ios-steamguard-extractor/issues/1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

undefo picture undefo  路  4Comments

NanoAi picture NanoAi  路  3Comments

Gilrain picture Gilrain  路  3Comments

light444 picture light444  路  3Comments

MrBurrBurr picture MrBurrBurr  路  3Comments