Philipp15b / go-steam

Steam's protocol in Go to allow automation of different actions on the Steam network without running an actual Steam client. Includes APIs for friends, chatting, trading, trade offers and TF2 crafting.
https://pkg.go.dev/github.com/Philipp15b/go-steam/v3
Other
390 stars 129 forks source link

Getting error about cannot UnmarshalJSON when running `tradeoffer.GetOwnInventory` #46

Closed PanicIsReal closed 8 years ago

PanicIsReal commented 9 years ago

Getting the error:

cannot unmarshal string into Go value of type []*inventory.Action

when trying to do:

    ownInv, err := Trader.GetOwnInventory(1, 295110)
    if err != nil {
            log.Println(err)
    }

    log.Println(ownInv)

Not sure exactly what is going on and why it is failing but it is.

Philipp15b commented 8 years ago

To debug this, I'd need more data, for example the actual data transferred over the network. However, I'll just go ahead and hope #59 either fixes this or makes this obsolete :)