These are chat archives for arenanet/api-cdi

12th
Aug 2017
Archomeda
@Archomeda
Aug 12 2017 00:02
lol, the demo characters do show up on the API
but it's not updated
BoyC
@BoyC
Aug 12 2017 00:16
dead keys are the bane of taco's existence :P
Archomeda
@Archomeda
Aug 12 2017 00:19
oh btw, anet can keep my demo character; i went as far as losing all my ectos on it :P
i got my fun out of it without consequences
also, why @BoyC?
BoyC
@BoyC
Aug 12 2017 00:23
to be able to catch key and mouse events from a non-focused window (aka taco), i needed to create a mouse and windows hook
which is basically that the event gets passed to taco first and then if it didn't use it it passes it on to the client
thing is that this process has some weird issues with stuff like dead keys
Archomeda
@Archomeda
Aug 12 2017 00:24
hmm, i was running taco at the same time
BoyC
@BoyC
Aug 12 2017 00:24
that'd probably explain it :)
Archomeda
@Archomeda
Aug 12 2017 00:24
the weirdest things was that it only happened on my demo character
BoyC
@BoyC
Aug 12 2017 00:24
i may hit you up for some debugging if i ever find a solution
heh
Archomeda
@Archomeda
Aug 12 2017 00:24
on my main character it worked fine :/
also, are you aware that pasting the API/TS3 key into the window, passes V to the client as well? :D
and enter too
don't stand on the edge of a platform while doing that or you'll die :P
btw, if you want to test out the dead keys yourself, setting the keyboard layout to US International should work
otherwise i would be happy to test it for you some time
BoyC
@BoyC
Aug 12 2017 00:28
oh that kinda crap is also a problem yeah
if taco was allowed inside a proxy d3d dll i could potentially fix all of that
Archomeda
@Archomeda
Aug 12 2017 04:05
interesting how this showed up
never seen those stats before
Darrian
@rikkuness
Aug 12 2017 15:55
quick question, seem to have an issue today where I launch GW2 and it accepts no input, mouse/keyboard aren't doing anything, I thought it was maybe BGDM related and removed it but I still get the same thing, relaunched 2 or 3 times and still nothing :/
Archomeda
@Archomeda
Aug 12 2017 17:16
wait what... what is Legend5 actually?
i'm sure it didn't use to be there....
is that one supposed to be renegade?
the swap skill is also a 404
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:22
Looks like @lye may not have had a whitelist protecting those
Archomeda
@Archomeda
Aug 12 2017 17:22
i'm pretty sure /v2/legends is his own implementation
and not how the content is actually represented, so yeah, probably
in which case, it's actually interesting that renegade has a lower id than centaur
maybe centaur was supposed to be an elite spec in early design concepts?
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:26
Wait, 6 is Ventari?
Archomeda
@Archomeda
Aug 12 2017 17:26
yes
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:26
I thought 6 would be Glint, huh
Archomeda
@Archomeda
Aug 12 2017 17:26
no, that's 1 :P
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:26
I wonder if they even have those names internally
or if lye just says "Legend" + i
Archomeda
@Archomeda
Aug 12 2017 17:28
Dragon Assassin Dwarf
Demon Centaur
i mean, even the image for ventari is weird
there's no black border, just like glint
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:29
odd
also I love how his background is just literally a picture of a leaf
Archomeda
@Archomeda
Aug 12 2017 17:29
oh you're right
i didn't even notice that
HooHaa8384
@HooHaa8384
Aug 12 2017 17:35
Hi. Im struggling a bit with the commerce API's. I'm hoping someone here can maybe help
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:37
shoot
HooHaa8384
@HooHaa8384
Aug 12 2017 17:37
the data here:
is not matching whats ingame
also
it dosen't match here
I can't seem to figure out why
my first thought was that it only updates the API after an interval, but then i would expect the prices and listing to match up
ChieftainAlex
@ChieftainAlex
Aug 12 2017 17:39
did the second one match ingame?
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:40
The API results are cached for 30s on the v2/commerce endpoints
It -is- odd that it's showing 210 on prices and 215 on listings though.
HooHaa8384
@HooHaa8384
Aug 12 2017 17:41
yeah
they match now though
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:41
Do they? Mine still don't..
HooHaa8384
@HooHaa8384
Aug 12 2017 17:41
im doing hard reloads in chrome so my browser shouldn't be caching anything
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:41
It's not your browser doing the caching
Archomeda
@Archomeda
Aug 12 2017 17:42
cache times might not line up
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:42
The result cache is server-side
@Archomeda exactly what I was thinking
/v2/commerce is set at 30s, right? Or was that only /v2/wvw?
Archomeda
@Archomeda
Aug 12 2017 17:43
i don't actually know
lye did mention it multiple times, but i always forget the cache times
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:43
Date:Sat, 12 Aug 2017 17:42:37 GMT
Expires:Sat, 12 Aug 2017 17:44:37 GMT
2 minutes
or
No, I think it calculates Expires based off the current time, so yeah, 2 minutes
Archomeda
@Archomeda
Aug 12 2017 17:43
that header doesn't seem to be right
on listings it's several hours
but it changed 2 times for me within a few minutes
while prices hasn't changed since i started looking
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:44
Date:Sat, 12 Aug 2017 17:43:45 GMT
Expires:Sat, 12 Aug 2017 18:03:46 GMT
20 minutes, huh
Archomeda
@Archomeda
Aug 12 2017 17:45
wait, you're right, it's not hours
i saw max-age=1200 and thought of 2 hours for some reason
HooHaa8384
@HooHaa8384
Aug 12 2017 17:45
that would help explain all the oddities i'm seeing
Archomeda
@Archomeda
Aug 12 2017 17:46
oh, now prices actually updated
ChieftainAlex
@ChieftainAlex
Aug 12 2017 17:46
anyone know of a text editor that allows you to inspect the type of whitespace used? e.g. This user seems to be entering in weird spaces which break things. - retyping it seems to work (so the current rev is using a regular space, the older one doesn't work though)
Archomeda
@Archomeda
Aug 12 2017 17:46
but yeah, my best guess is that the cache times don't line up
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:47
@ChieftainAlex Notepad++
ChieftainAlex
@ChieftainAlex
Aug 12 2017 17:47
huh really
just the show all characters button?
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:47
View -> Show Symbol -> Show All Characters
HooHaa8384
@HooHaa8384
Aug 12 2017 17:47
i guess we just confirmed that, listings is 20 min, prices is 2 min
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:47
image.png
@ChieftainAlex
Archomeda
@Archomeda
Aug 12 2017 17:47
well not really, 20 minutes for listings doesn't seem right as it updated twice for me within 5 minutes
ChieftainAlex
@ChieftainAlex
Aug 12 2017 17:48
can't tell the difference between nbsp and space with that though it seems
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:49
What's nbsp's character code?
Archomeda
@Archomeda
Aug 12 2017 17:49
  is HTML for a forced space
but... that's just text in your file right? you can find replace that
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:50
..You're right, it can't
Huh
Find \xA0
With extended mode on
ChieftainAlex
@ChieftainAlex
Aug 12 2017 17:50
image.png
Archomeda
@Archomeda
Aug 12 2017 17:50
or, wait wtf i just looked at that revision
ChieftainAlex
@ChieftainAlex
Aug 12 2017 17:50
_>
last time took me an hour to figure out what the problem was, this time 1 minute. Still not sure where he's got the character from though
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:51
Some weird international keyboard layout?
0xA0 is indeed  
oh wtf gitter
 
i did not know it was actually an ASCII character
you can copy paste it if you really want it to be there
ChieftainAlex
@ChieftainAlex
Aug 12 2017 17:54
when I paste it, it seems to lose whatever crap character that is
Archomeda
@Archomeda
Aug 12 2017 17:54
e.g. normal spaces are stripped here
but   non-breaking    spaces     are   not
funnily enough gitter actually converts   if you type it :P
yeah, it seems to lose its properties for me as well when copying
ChieftainAlex
@ChieftainAlex
Aug 12 2017 17:56
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Aug 12 2017 17:56
¯\_(ツ)_/¯
ChieftainAlex
@ChieftainAlex
Aug 12 2017 17:56
<3
Quaggan BooOOoot
@QuagganBooOOoot
Aug 12 2017 17:56
:heart:
Archomeda
@Archomeda
Aug 12 2017 17:56
maybe he used an external editor?
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:57
test test
huh
fancy
Archomeda
@Archomeda
Aug 12 2017 17:57
hmm, were you using nbsp?
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:57
nope
Archomeda
@Archomeda
Aug 12 2017 17:57
oh :P
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:58
didn't know it stripped spaces between words though
Archomeda
@Archomeda
Aug 12 2017 17:58
it's either markdown that does it, or HTML itself
i think HTML
Eearslya Sleiarion
@Eearslya
Aug 12 2017 17:58
I think HTML too
because &nbsp; exists
Archomeda
@Archomeda
Aug 12 2017 17:59
yeah
ChieftainAlex
@ChieftainAlex
Aug 12 2017 18:06
it was nbsp btw
darthmaim
@darthmaim
Aug 12 2017 18:08
just ask him where he gets the nbsp from?
ChieftainAlex
@ChieftainAlex
Aug 12 2017 18:09
already asked :) thanks for the help though
HooHaa8384
@HooHaa8384
Aug 12 2017 18:09
running a test now on listings caching. So far I'm two minutes in. I'll update with what I find
HooHaa8384
@HooHaa8384
Aug 12 2017 18:39
20 minutes :(
Archomeda
@Archomeda
Aug 12 2017 19:00

:point_up: 26 september 2016 19:19

my searching only gives me this

so i don't know why it might be 20 minutes
darthmaim
@darthmaim
Aug 12 2017 19:01
i'm pretty sure the cache times increased after the api was down and we got rate limiting
HooHaa8384
@HooHaa8384
Aug 12 2017 19:11
I made a request every second and printed the time it changed
i received the same data for 20:02
ChieftainAlex
@ChieftainAlex
Aug 12 2017 19:18
my bets are on lye mistyping 2 minutes as 1200 seconds
HooHaa8384
@HooHaa8384
Aug 12 2017 19:21
Is there a way to submit a bug report?
darthmaim
@darthmaim
Aug 12 2017 19:21
just wait till monday
and we will ask @lye
but if you want to open an issue so we don't forget: https://github.com/arenanet/api-cdi/issues/new
HooHaa8384
@HooHaa8384
Aug 12 2017 19:22
hmm...
running more tests and i had 3 updates in ~ 2 min
darthmaim
@darthmaim
Aug 12 2017 19:23
each datacenter is running multiple instances of the api
probably each with their own cache
maybe you hit 2 different instances in those 2 minutes
HooHaa8384
@HooHaa8384
Aug 12 2017 19:24
possibly. I'm going to let me script run for a few hours and see what comes of it. If it warrants an issue, I'll add one
darthmaim
@darthmaim
Aug 12 2017 19:24
:+1:
BoyC
@BoyC
Aug 12 2017 20:13
servers dead again it seems
ChieftainAlex
@ChieftainAlex
Aug 12 2017 20:13
NA and EU
lovely
worth it though. http://imgur.com/a/SKOty
my skimmer was a bit heavy
Darrian
@rikkuness
Aug 12 2017 20:14
anyone write a dash for my APIs? haha
ptolstoi
@ptolstoi
Aug 12 2017 20:26
and we're back (US)
Darrian
@rikkuness
Aug 12 2017 20:28
looks good here too