garhow / steam-rs

Safe Rust bindings for the Steam Web API
MIT License
23 stars 10 forks source link

error decoding response body: missing field `tags` at line 1 column 624 #35

Closed treeshateorcs closed 7 months ago

treeshateorcs commented 7 months ago

when trying to steam.get_asset_prices(app_id, None, None)

am i right in assuming this is not intentional? (rust newb here)

treeshateorcs commented 7 months ago

i think there's no tags and tag_ids fields.

p.s. and on Asset too

garhow commented 7 months ago

What AppID are you using? I can't replicate this with 440 (Team Fortress 2).

garhow commented 7 months ago

I think the problem may be that some apps don't return the tags fields. The solution may be to make the tags fields optional.

treeshateorcs commented 7 months ago

What AppID are you using? I can't replicate this with 440 (Team Fortress 2).

730 (counter strike 2)

garhow commented 7 months ago

Getting the raw JSON data for 730 from https://api.steampowered.com/ISteamEconomy/GetAssetPrices/v1/?appid=730 shows that there are no tags fields in the result, so we should make them optional.

garhow commented 7 months ago

Seems to be fixed in df57cc52d1589e539388d582ed6d0d2c8d5e4178.