DoctorMcKay/node-steam-tradeoffer-manager

Wrong data in polldata

JustAzul opened this issue · 4 comments

Im using atm, the latest release version.

I activated some debug logs on mw own to check processed trades, and sometimes it happens something like this..

00
0
after

something is wenting wrong, it hapending time to time..

polldata its being stored by savePollData: true option on constructor..

i think this is a bug that regards steam api probably, but im not sure if this is really supposed to happen in this module :c

This doesn't have anything to do with poll data. Sometimes Steam is just complete garbage and gives junk data. Not really anything we can do about it.

What if before emits any sentOfferChanged it checks on module data if the offer was previously completed before?, im trying that atm, and its working, since we can get the oldOfferState i assume that is possible somehow right?

Yes, it would be possible, but I'm concerned that there might be cases where trade offers go from a completed state to a different state in reality. For example, back in the day, it was possible for offers to go from Accepted to InvalidItems.

steam really sucks at some points :(