These are chat archives for arenanet/api-cdi

20th
Jul 2018
Archomeda
@Archomeda
Jul 20 2018 17:20
hmm, any chance someone knows on the top of their head if error message for a 403 for missing scopes contains all the scopes, or just one?
Right now I can see that characters/inventory returns "requires scope characters" even if both scopes characters and inventories are missing :thinking: 🤔
seriously gitter... update your damn emojis
darthmaim
@darthmaim
Jul 20 2018 17:24
I think only one missing scope
Archomeda
@Archomeda
Jul 20 2018 17:24
well that kinda sucks :(
ptolstoi
@ptolstoi
Jul 20 2018 21:00
@Archomeda you could ask the https://api.guildwars2.com/v2/tokeninfo endpoint beforehand
Archomeda
@Archomeda
Jul 20 2018 21:04
That's not really a wise decision for an API wrapper ^^
I just wanted to see if I could somehow make the exception include a full list of missing scopes
But if the API doesn't provide it in the error response, it's not that big of a deal.
Quaggan BooOOoot
@QuagganBooOOoot
Jul 20 2018 23:07
New discussion in API Development:

Odd Cache Behavior
by Armeth.3145 in API Development

I have a job that runs every 5 minutes and pulls data from /v2/commerce/transactions/history/sells. The same stale data is returned every time for hours. If I hit the endpoint with postman once, I see the stale data. If I hit it a second time, I see the stale data. When I hit the endpoint the third time, it seems to invalidate cache and finally returns updated data. Does anyone have an idea of what might be happening or how I could work around this?

Daniel Snider
@dsnider-anet
Jul 20 2018 23:38
API Update:
  • Fixed a change to the caching behavior of some endpoints that caused stale results to be served indefinitely until the endpoint was requested more than twice within 15s