OPSkins / trade-opskins-api

API docs for trade.opskins.com
41 stars 19 forks source link

Invalid data in GetOffers response #127

Closed memiamp closed 2 years ago

memiamp commented 5 years ago

When executing /ITrade/GetOffers/v1/, occasionally the JSON that is returned doesn't match the definition.

According to the site docs, the response should contain an offers array-object which is an Array of Standard Trade Offer Object.

However, sometimes there are boolean values in the array, so it appears like:


[{TradeOfferObject},{TradeOfferObject},false,{TradeOfferObject}]
[false,{TradeOfferObject},{TradeOfferObject},{TradeOfferObject}]

What are the spurious booleans representing? A subsequent call to GetOffers will not return the booleans. They appear sporadically.

lelek16 commented 5 years ago

I've noticed similar issues in different endpoints, where response doesn't match definition. It looks like V1 works only with VGO. Did you try V2 endpoint? They use it on their site.