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 confirmations #1108

Closed Injourn closed 6 years ago

Injourn commented 6 years ago

When the bot tries to accept a trade and confirm it under Bot.AcceptAllMobileTradeConfirmations(), This error pops up. This problem started occuring today after maintenance.

Koenig4443 commented 6 years ago

i am seeing the same error when calling SteamGuardAccount.AcceptConfirmation(confirmation) . I guess steam changed something during the maintenance.

SteamGuardAccount.RefreshSession(); CheckCookies();

both return true but after that the session still fails

voz261 commented 6 years ago

same here

Koenig4443 commented 6 years ago

Steam changed the confirmation page and steamauth failed to parse it correctly. Steamauth have been updated with new regx for the parsing and i have confirmed that it is working with the new version.

My2ndLovE commented 6 years ago

@Koenig4443 which version of Steamauth you are using right now?

Koenig4443 commented 6 years ago

https://github.com/geel9/SteamAuth

this one

alekwam70 commented 6 years ago

@Koenig4443 How to apply it in SteamBot?

Koenig4443 commented 6 years ago

You need to compile the steamauth.dll and reference this instead of the old version in your project

Injourn commented 6 years ago

Yep, That worked. Thanks!

alekwam70 commented 6 years ago

@Scott-GH Help me please. I am not a programmer. It is impossible to me.

Injourn commented 6 years ago

Help with what?

Koenig4443 commented 6 years ago

alekwam70 if you are not a programmer you will probably have a hard time fixing stuff like this. You will have to wait for steambot to update their libaries and then use that when it is working again.

voz261 commented 6 years ago

@Koenig4443 update SteamAuth to v1.1.0 ... still error :( can give me some tip . Thank

Koenig4443 commented 6 years ago

all i can say is to change to this current version as previously mentioned . https://github.com/geel9/SteamAuth

Works for me and many others so you must be doing something wrong.

alekwam70 commented 6 years ago

@Koenig4443 And it is possible to throw off already compiled steambot? It is necessary that accepted and I sent all trades. alek_wam@tut.by

voz261 commented 6 years ago

.

Koenig4443 commented 6 years ago

Im sorry but i cannot share my steambot as it is highly customized and unusable for anyone else but me.

voz261 : dont use nuget , use the link provided.

voz261 commented 6 years ago

Now, accept a trade is work or not ? @@ my bot cant accept trade, but not show error, any1 same

Injourn commented 6 years ago

For me, It goes back and forth between working and not working. I have to reset the both though. I think it's an issue with steam.

voz261 commented 6 years ago

do u fix it ? till now i cant accept trade :(( so bad

Injourn commented 6 years ago

No, I don't know what's going on

voz261 commented 6 years ago

@Scott-GH this is my problem , do u same? https://github.com/waylaidwanderer/SteamTradeOffersBot/issues/25

:(( TradeOffers error , not steamAuth

Koenig4443 commented 6 years ago

this is not related to #1108

This error is caused by steam now forcing a redirect from http to https. it can be fixed by simply changing the url in AcceptTrade(TradeOffer tradeOffer, out ulong tradeId) to https .

AcceptTradeis located in TradeOffers.cs from SteamAPI project

just to be sure i changed all urls to https

voz261 commented 6 years ago

@Koenig4443 THANK, have a nice day ^^