TF2Autobot / tf2autobot

tf2autobot: an Improved version from tf2-automatic
https://autobot.tf
MIT License
214 stars 80 forks source link

Invalid Authenticator? #1760

Closed REFUZIION closed 3 months ago

REFUZIION commented 3 months ago

Describe the bug Whenever my bot tries to accept a trade where the bot has to send something and has to use the authenticator it says Error: Invalid Authenticator. Which is weird since the bot is able to login using the authenticator..

To Reproduce

Steps to reproduce the behavior:

  1. launch the bot following the wiki
  2. send a trade to the bot where it has to send an item back.
  3. let the bot accept, it will fail atleast for me it does.

Expected behavior Accept the trade, happy trader happy me.

Screenshots and logs Node version: ➜ v18.18.1 The discord embed sends:

Error while trying to accept mobile confirmation
Error while trying to accept mobile confirmation on offer #7093198882

Summary (offer)
• Asked: 0.11 ref〚[:tf2scrap:](https://autobot.tf/items/5000;6) (28 → 27)〛
• Offered: 4 ref〚[:tf2scrap:](https://autobot.tf/items/5000;6) x9 (28 → 37), [The Sharp Dresser](https://autobot.tf/items/638;6) (89 → 90/1)〛
──────────────────────

The offer might already get cancelled. You can check if this offer is still active by sending "!trade 7093198882"

Error: Invalid authenticator

PM2 log says:

0|Trading Bot  | 2024-06-14 01:48:46 info: Message sent to fuZ ioN (76561198350672998): I have accepted your offer. The trade will be finalized shortly. If the trade does not finalize after 1-2 minutes has passed, please send your offer again, or add me and use the !sell/!sellcart or !buy/!buycart command.
0|Trading Bot  | 2024-06-14 01:48:47 trade: Offer #7093198882 from 76561198350672998 successfully accepted; confirmation required
0|Trading Bot  | 2024-06-14 01:48:47 debug: Accepting mobile confirmation... {"offerId":"7093198882"}
0|Trading Bot  | 2024-06-14 01:48:47 debug: actedOnConfirmationTimestamp 1718322527182
0|Trading Bot  | 2024-06-14 01:48:47 debug: Offer #7093198882 from 76561198350672998 done doing action on offer
0|Trading Bot  | 2024-06-14 01:48:47 debug: Processing next offer
0|Trading Bot  | 2024-06-14 01:48:47 debug: Already processing offer or queue is empty
0|Trading Bot  | 2024-06-14 01:48:47 warn: Error while trying to accept mobile confirmation on offer #7093198882:  Invalid authenticator {}
0|Trading Bot  | 2024-06-14 01:49:17 debug: Auto retry accepting offer...
0|Trading Bot  | 2024-06-14 01:49:18 trade: Offer #7093198882 from 76561198350672998 successfully accepted; confirmation required
0|Trading Bot  | 2024-06-14 01:49:18 debug: Accepting mobile confirmation... {"offerId":"7093198882"}
0|Trading Bot  | 2024-06-14 01:49:18 debug: actedOnConfirmationTimestamp 1718322558795
0|Trading Bot  | 2024-06-14 01:49:18 debug: Offer #7093198882 from 76561198350672998 done doing action on offer
0|Trading Bot  | 2024-06-14 01:49:19 warn: Error while trying to accept mobile confirmation on offer #7093198882:  Invalid authenticator {}

Additional context The thing is tho if I accept it manually using the Steam Desktop Authenticator it goes through and sends a success message. Trying to use !faccept does not resolve this issue either.

REFUZIION commented 3 months ago

I have no clue what exactly the issue was however I refreshed my login session on Steam Desktop Authenticator and the STEAM_IDENTITY_SECRET changed. After entering the new one in ecosystem.json all was well.