Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotFoundException thrown though item exist in gw2sharp cache #142

Open
Taschenbuch opened this issue Sep 18, 2024 · 0 comments
Open

NotFoundException thrown though item exist in gw2sharp cache #142

Taschenbuch opened this issue Sep 18, 2024 · 0 comments

Comments

@Taschenbuch
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant