JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

"Updates, discussions, and documentation of the BungieNetPlatform API."

Request Join
originally posted in:BungieNetPlatform
3/14/2016 3:02:59 AM
2

Outdated info from EquipItems

Over on Destiny Item Manager, we're trying to be a little more efficient by using the EquipItems API instead of EquipItem. With the latter, we have to follow up with a call to get account info in order to update light level and stats, wheras EquipItems promises to provide that info as part of the equip response. However, what I've noticed in testing is that the character info returned by EquipItems doesn't always reflect the updated stats from equipping item(s). So, for example, if I have a 3-defense Ghost Shell equipped, and I equip a 320-defense shell in its place, the returned character info still has the same light level, instead of a higher light level. Same with int/dis/str stats. This doesn't always happen - sometimes I do get the updated stats. Sounds like a read-after-write eventual consistency or caching problem to me, but I don't know the inner workings of the API. :-) /cc @VThornheart

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • I have updated the [url=http://destinydevs.github.io/BungieNetPlatform/docs/DestinyService/EquipItems]EquipItems page[/url] to reflect this discussion. :)

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • Edited by lowlines: 3/14/2016 10:34:07 AM
    IIRC that endpoint was an experiment/hack of some sort (I would try linking you to the original post, but it was so long ago I probably won't find it) so it may not even be in use aka not maintained anymore. If there's an updated answer to this I'll make sure to update the wiki on it for future reference. [edit] Actually I found it with a Google search [url]https://www.bungie.net/en/Clan/Post/39966/187691777/1[/url] :p

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

    4 Replies
    You are not allowed to view this content.
    ;
    preload icon
    preload icon
    preload icon