Jessecar96 / SteamBot

Automated bot software for interacting with Steam Trade
http://scrap.tf
MIT License
1.33k stars 911 forks source link

Invalid session when trying to fetch trade confirmations #1048

Open xagotrunk opened 8 years ago

xagotrunk commented 8 years ago

There seems to be an issue with mobile trade confirmations. Whenever my bot runs Bot.AcceptAllMobileTradeConfirmations(); more often than not the error "Invalid session when trying to fetch trade confirmations" is shown

www.steamstat.us is also showing Steam Community 100.0% Failed Trades quite frequently that could also be related to the problem.

FrozenHaxor commented 8 years ago

I confirm this issue. Users are reporting problems with trade confirmations on bot's end.

Exception Invalid session when trying to fetch trade confirmations is thrown upon confirmation attempt.


Did some more digging, this is the data we're receiving when the exception is thrown: d2016-09-10_t15-41-19 1

So obviously they introduced throttling. Need to adjust stuff accordingly.

scholtzm commented 8 years ago

Yes, indeed they introduced throttling to several old pages including the main trade offers page. Adjusting your settings will fix this.

spyfly commented 7 years ago

How frequently can you confirm offers now without getting issues? I had to switch back to the built in confirmations in SteamTradeOffersBot, as calling Bot.AcceptAllMobileConfirmations() barely resulted in an Invalid Session.

waylaidwanderer commented 7 years ago

Someone told me that if you wait 10s between fetching the confirmations list, you can avoid being throttled.

I added a commit over on SteamTradeOffersBot to fix this issue, but I'm hesitant to create a pull request for SteamBot because there are probably more elegant ways to code it.

https://github.com/waylaidwanderer/SteamTradeOffersBot/commit/8fb3879a40c0cfbdc5a5abf55901ba5ddca3eeea

FrozenHaxor commented 7 years ago

Looks can be deceiving, I'd say go for it as long as it solves the problem ;)