These are chat archives for arenanet/api-cdi

13th
Jun 2017
Michael Dougall
@madou
Jun 13 2017 00:28
ok.
Michael Dougall
@madou
Jun 13 2017 00:57
it'll be javascript, hope that works ;)
David Reeß
@queicherius
Jun 13 2017 11:32
@lye Thanks for the whitelist. <3
Also, potential :fire: - a whole buch of different endpoints (delivery, account dyes, pvp games, mastery points) throw this:
Error 42 (0:9001:4402): Srv2Taco, transaction timeout {#371426}, {P+/Taco/Request+STS/1.0}, {10.51.69.119:50514 0 0 0 0}
TacoProxy/302.7031402 Instance/5.512586004
And endpoints seem to stall/wait for ages: http://i.imgur.com/xFVbVII.png
Seems to be failry random to me if / which throw and how long they take
Archomeda
@Archomeda
Jun 13 2017 13:51

well, i've been trying to use raidheroes for log parsing, files are 10MB+, tried to minify it, minifier spits out an error that it can't parse this:

<img src="https://render.guildwars2.com/file/7B1B6E07A10B0FE8CED391354390EE993F51C3F7/1029984.png" data-toggle="tooltip" title=""Rebound!" [23443ms]">

yeah... no wonder :joy:

does someone know a regex that can change " inside html attributes to &quot;? although i doubt you can solve this with a simple regex
Archomeda
@Archomeda
Jun 13 2017 14:14
hmm, just did it with sed instead for now:
#!/bin/sed -f
s/"Rebound!"/\&quot;Rebound!\&quot;/g
s/"Wash the Pain Away!"/\&quot;Wash the Pain Away!\&quot;/g
s/"Flash-Freeze!"/\&quot;Flash-Freeze!\&quot;/g
hardcoded skills yay
the file shrunk from 12,710,116 to 9,801,141 bytes
and it took a minute or so to minify it :')
Eearslya Sleiarion
@Eearslya
Jun 13 2017 15:11
@Archomeda s/(\"|!)\"/$1&quot;/
it'll work with any skills that end in ! at least XD
darthmaim
@darthmaim
Jun 13 2017 15:12
thats only replacing the tailing quote
Eearslya Sleiarion
@Eearslya
Jun 13 2017 15:12
no it replaces both
darthmaim
@darthmaim
Jun 13 2017 15:12
ohh yeah
I see what you did there
Eearslya Sleiarion
@Eearslya
Jun 13 2017 15:12
had to use the parameter for it
don't even need to escape the quotes, actually
s/("|!)"/$1&quot;/
habit
darthmaim
@darthmaim
Jun 13 2017 15:16
["\"Receive the Light!\"","\"Retreat!\"","\"Save Yourselves!\"","\"Hold the Line!\"","\"Stand Your Ground!\"","\"Strength of the Pack!\"","\"Protect Me!\"","\"Guard!\"","\"Sic 'Em!\"","\"Shake It Off!\"","\"To the Limit!\"","\"For Great Justice!\"","\"Fear Me!\"","\"Shake It Off!\"","\"On My Mark!\"","\"You Are All Weaklings!\"","\"Wash the Pain Away!\"","\"Nothing Can Save You!\"","\"Flash-Freeze!\"","\"Feel My Wrath!\"","\"Rebound!\"","\"Eye of the Storm!\"","\"Chilled to the Bone!\"","\"Search and rescue.\"","\"Aftershock!\"","\"Your Soul Is Mine!\"","\"Feel the Burn!\"","\"Suffer!\"","\"Eye of the Storm!\"","\"Rise!\"","\"We Heal As One!\"","\"Search and Rescue!\""]
all skills with quotes
"Search and rescue." doesn't end with !
but all others do
Eearslya Sleiarion
@Eearslya
Jun 13 2017 15:19
there
s/("|!|\.)"/$1&quot;/
darthmaim
@darthmaim
Jun 13 2017 15:20
that would break the skill A.E.D.
:P
Eearslya Sleiarion
@Eearslya
Jun 13 2017 15:20
dammit
hang on I'm googling
got it
darthmaim
@darthmaim
Jun 13 2017 15:22
just do fetch('https://api.guildwars2.com/v2/skills?ids=all&lang=en').then(r => r.json()).then(skills => skills.forEach(skill => html = html.replace(skill.name, skill.name.replace('"', '&quot;'))))
Eearslya Sleiarion
@Eearslya
Jun 13 2017 15:22
s/(=")"(.+)"(.+)(")/$1&quot;$2&quot;$3$4/
that works for the html attributes
actually wait
shoot hang on
Eearslya Sleiarion
@Eearslya
Jun 13 2017 15:27
s/""([^"]*)"([^"]*)"/"&quot;$1&quot;$2"/g
turns ""Rebound!" [23443ms]" into "&quot;Rebound!&quot; [23443ms]"
and in theory should work for all quoted skills
..as long as the skill is the first thing in the string, but I could fix that too
s/"([^"]*)"([^"]*)"([^"]*)"/"$1&quot;$2&quot;$3"/g
This message was deleted
GITTER NO
darthmaim
@darthmaim
Jun 13 2017 15:31

wouldn't that turn

<img src="https://render.guildwars2.com/file/7B1B6E07A10B0FE8CED391354390EE993F51C3F7/1029984.png" data-toggle="tooltip">

into

<img src="https://render.guildwars2.com/file/7B1B6E07A10B0FE8CED391354390EE993F51C3F7/1029984.png&quot; data-toggle=&quot;tooltip">
Eearslya Sleiarion
@Eearslya
Jun 13 2017 15:34
...why -is- it doing that
grr
oh
yeah that'd do it
s/="([^"]*)"([^"]*)"([^"]*)" /="$1&quot;$2&quot;$3" /g
unfortunately that limits it to only html attributes but yeah
regex is scary
@queicherius yeah, there's something broken somewhere that's not API-related
and it's causing intermittent outages
daft if I know what it is though
David Reeß
@queicherius
Jun 13 2017 16:46
Just computers doing things. /shrug
Thanks for looking into it <3
nah this has been going on for a week
people have been complaining about internal tools sporadically failing
like ... it's not a web problem :shrug:
Archomeda
@Archomeda
Jun 13 2017 16:53
:fire:
Quaggan BooOOoot
@QuagganBooOOoot
Jun 13 2017 16:53
:fire_engine:
orz
Archomeda
@Archomeda
Jun 13 2017 16:53
NO @QuagganBooOOoot
keep the :fire:
windwarrior
@windwarrior
Jun 13 2017 16:53
:fire: :fire: :fire:
sad :(
quaggan tried
windwarrior
@windwarrior
Jun 13 2017 16:54
watching the nintendo keynote
David Reeß
@queicherius
Jun 13 2017 16:54
:D i love that bot
windwarrior
@windwarrior
Jun 13 2017 16:54
I sometimes wonder how they come up with this
You are going on an adventure
... with a hat
Isn't it great
someone mentioned this in a meeting
"what if your hat was a magical creature"
and no-one shot it down
ChieftainAlex
@ChieftainAlex
Jun 13 2017 18:07
[&CiMJAAA=]
Quaggan BooOOoot
@QuagganBooOOoot
Jun 13 2017 18:07
link type id info links
[&CiMJAAA=] skin 2339 icon A T W
Darqam
@Darqam
Jun 13 2017 18:38
soooo, skins for the two new items are not on api yet
are uhh, uhh
what new items are we talkin' about
oh nm they're in the q
darthmaim
@darthmaim
Jun 13 2017 18:40
7262,7258
yeah i hit those with a whitelist stick
Darqam
@Darqam
Jun 13 2017 18:43
<3
Archomeda
@Archomeda
Jun 13 2017 19:00
@QuagganBooOOoot why did you ignore the <3? D:
<3
darthmaim
@darthmaim
Jun 13 2017 19:00
good question
Archomeda
@Archomeda
Jun 13 2017 19:00
</3
darthmaim
@darthmaim
Jun 13 2017 19:00
let me check the logs real quick
the bot looks for :heart: but you wrote <3
:heart:
Quaggan BooOOoot
@QuagganBooOOoot
Jun 13 2017 19:02
:heart:
Archomeda
@Archomeda
Jun 13 2017 19:02
pff </3
:P
pretty sure it used to work before
i don't think i ever wrote :heart:
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Jun 13 2017 19:02
¯\_(ツ)_/¯
Archomeda
@Archomeda
Jun 13 2017 19:02
maybe gitter changed something
darthmaim
@darthmaim
Jun 13 2017 19:03
maybe
fixed
Archomeda
@Archomeda
Jun 13 2017 19:16
<3
Quaggan BooOOoot
@QuagganBooOOoot
Jun 13 2017 19:16
:heart:
Darqam
@Darqam
Jun 13 2017 19:42
<3
Quaggan BooOOoot
@QuagganBooOOoot
Jun 13 2017 19:42
:heart:
Darqam
@Darqam
Jun 13 2017 19:42
why would I type :heart: when I can just do <3, pfft
"use strict"; isn't that redundant in newer versions of nodejs?
darthmaim
@darthmaim
Jun 13 2017 19:44
yes
darthmaim
@darthmaim
Jun 13 2017 19:45
no idea why, guess I am just used to that
Darqam
@Darqam
Jun 13 2017 19:45
not that it hurts I guess
Archomeda
@Archomeda
Jun 13 2017 19:46
is it?
i never found a conclusive answer anywhere :(
Darqam
@Darqam
Jun 13 2017 19:46
well I know node7+ will complain about poorly used 'let' and 'const' without that
I imagine it's from before node 7 though
darthmaim
@darthmaim
Jun 13 2017 19:47
I'm using babel for the bot which adds "use strict" anyway IIRC
Darqam
@Darqam
Jun 13 2017 19:49
hmmmm
!test
Quaggan BooOOoot
@QuagganBooOOoot
Jun 13 2017 19:49
How dooo you doo?
Darqam
@Darqam
Jun 13 2017 19:49
having a test command working on live :D
darthmaim
@darthmaim
Jun 13 2017 19:49
I pm him that from time to time when he doesn't respond in here
Darqam
@Darqam
Jun 13 2017 19:53
http://prntscr.com/fjecr4 what is good web design?
(oh good no embed)
Werdes
@werdes
Jun 13 2017 21:12
hey @frodesigns seems like your cert expired?
smiley
@codemasher
Jun 13 2017 21:20
good call
codemasher @codemasher checks cert expiry
windwarrior @windwarrior mutters something about letsencrypt
Eearslya Sleiarion
@Eearslya
Jun 13 2017 22:09
certbot renew
done
darthmaim
@darthmaim
Jun 13 2017 22:09
I am running that as a cron for over a year now
works great