These are chat archives for arenanet/api-cdi

25th
Apr 2018
Mike Lewis
@apoch
Apr 25 2018 18:38
@queicherius I randomly sampled some of those API keys. I managed to get to the bottom of one so far - it belongs to an account created 2 years ago, never logged into, and has no characters or account progress
can you provide some context as to where these keys come from and what is expected from them?
David Reeß
@queicherius
Apr 25 2018 18:53
@apoch The keys are entered from users of gw2efficiency. I'd expect them to not throw an error, just give back the account name and empty characters in that case
I remember lye saying something about that error now that I think about it, Ill see if I can find it
Mike Lewis
@apoch
Apr 25 2018 18:54
fair enough. Is there already a GitHub issue open for it? We have some hard-coded logic to do with an edge case that involves that error string, we'd have to find a way to not break that if we change the delivery of the data
i.e. we can do it but it's big enough it should be tracked :-)
David Reeß
@queicherius
Apr 25 2018 18:58
I can only find something to do with empty player blob
I'll write a ticket later :+1:
I would just flag the keys as invalid but that error happened before across all API keys (which caused all keys to be flagged) :D
Mike Lewis
@apoch
Apr 25 2018 19:10
yeah it can happen if the last data cached for an account is from an old build of the game and hasn't been reloaded in the current build. There is some workaround in the API code to try and flush the cache and try again in that case, but it isn't guaranteed to succeed
it also will happen to any new account until the player actually plays :-)
David Reeß
@queicherius
Apr 25 2018 20:44
@apoch Thank you for that explanation, very helpful, that makes it easier to handle in my backend jobs. I created the issue, but it's not really a high priority then :)
Is the account does not have game access something similar?
Mike Lewis
@apoch
Apr 25 2018 21:17
@queicherius I dug at the game access message briefly but I'm not sure I totally understand what triggers it yet. I suspect it's accounts in some kind of zombie state but it's hard to know for sure without specific accounts to look at
Mike Lewis
@apoch
Apr 25 2018 21:54
@CuriousCharr btw if there is not already an issue for the /v2/colors that are missing, please file one - I think I know why some colors don't show up
David Reeß
@queicherius
Apr 25 2018 21:58
@apoch Sent you another email with a bunch of keys for that issue :)
But thanks for that explanation as well, just going to handle the two issues as a "eh, probably not a big deal, try again tomorrow" case (atm it gets retried every 15m and flagged as an error so it clogs up processing a bit)
Mike Lewis
@apoch
Apr 25 2018 22:00
got it thanks. I have to run at the moment but I will try and dig into the root cause later on
David Reeß
@queicherius
Apr 25 2018 22:00
No rush, not really a priority probably
BoyC
@BoyC
Apr 25 2018 23:47
oooooh my gw1 char should have turned 13 today