Skip to content

NotFoundException thrown though item exist in gw2sharp cache #142

@Taschenbuch

Description

@Taschenbuch

usually, when you call v2.items for multiple item IDs and the gw2 api only knows some ids, it will simply return infos about the known ids and ignore the unknown ids.
BUT, when you repeat the same call, gw2sharp will throw a not found exception as if all ids are unknown though that is not true.

var client = new Gw2Sharp.Gw2Client();
var items = await client.WebApi.V2.Items.ManyAsync(new[] { 78599, 70093 }); // lvl 80 boost (unknown to api), shiny bauble (known to api)
var items2 = await client.WebApi.V2.Items.ManyAsync(new[] { 78599, 70093 }); // this will throw notFoundException

example to reproduce (happens in blish too):
https://dotnetfiddle.net/ZmWyRD

blish hud discord thread about the bug:
https://discord.com/channels/531175899588984842/1246217871521218661

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions