These are chat archives for arenanet/api-cdi

12th
Jan 2018
Archomeda
@Archomeda
Jan 12 2018 00:27
besides, so far everyone from my guild seems to be just fine following the steps i've created to make an api key for my discord bot
previously i made the steps too confusing, and since then i've revised them; never had any questions since
if people somehow can't follow clear steps to make an api key, then having them follow an oauth login is probably too much as well :')
actually, i'm not sure if that trivia is correct
Quaggan BooOOoot
@QuagganBooOOoot
Jan 12 2018 14:03

API issue following 1/9 patch
by Reedtanguerra.6425 in API Development

Cross posting: myself and a couple others are experiencing difficulties with our API keys following the 1/9 patch. Any help would be appreciated!

Original forum thread here: https://en-forum.guildwars2.com/discussion/24324/is-anybody-else-experiencing-api-difficulties-following-the-1-9-patch#latest

New discussion in API Development:
Eearslya Sleiarion
@Eearslya
Jan 12 2018 16:30
functionality != ease of use
smiley
@codemasher
Jan 12 2018 16:44
the problem here is that so much of the current functionality in modern browsers is based on such giant frameworks
and noone seems to question the crappy APIs that are the end product
like... promises
it's one of the reasons why i refuse to do front end stuff
it's a mess
ptolstoi
@ptolstoi
Jan 12 2018 17:18
@codemasher so you prefer callback hell? :D
smiley
@codemasher
Jan 12 2018 17:19
yes, because there's not much difference anyway
look at the prototype Ajax.Requestand tell me how the fetch API is superior to that
ptolstoi
@ptolstoi
Jan 12 2018 17:22
await fetch() :P
smiley
@codemasher
Jan 12 2018 17:22
with your callbacks disguised as then
ptolstoi
@ptolstoi
Jan 12 2018 17:23
yeah but you don't have 100 nested ones
"just" a chain
as I said, personal style ;)
smiley
@codemasher
Jan 12 2018 17:24
style, ok. it's a preference. but technical superior?
ptolstoi
@ptolstoi
Jan 12 2018 17:25
only one I think: async/await stuff is easier transformable to promises
and probably compilerwise, when you don't have to keep that many scopes alive
smiley
@codemasher
Jan 12 2018 17:25
we're in a callback right now xD
ptolstoi
@ptolstoi
Jan 12 2018 17:25
-compiler+runtime
smiley
@codemasher
Jan 12 2018 17:26
(try /s/blah/blub/ ;) )
ptolstoi
@ptolstoi
Jan 12 2018 17:26
don't use vim :P
smiley
@codemasher
Jan 12 2018 17:26
me neither but it works here
ptolstoi
@ptolstoi
Jan 12 2018 17:27
{CTRL+R}blah{TAB}blub{RETURN} :D
smiley
@codemasher
Jan 12 2018 17:27
ok, now i understand why you may prefer promises :P
ptolstoi
@ptolstoi
Jan 12 2018 17:28
I think it's just shorter
smiley
@codemasher
Jan 12 2018 17:31
<script >
    ((form, output, url) => {

        $(form).observe('submit', ev => {
            Event.stop(ev);

            new Ajax.Request(url, {
                method: 'post',
                parameters: ev.target.serialize(true),
                onUninitialized: $(output).update(),
                onLoading: $(output).update('[portlandia_screaming.gif]'),
                onFailure: response => $(output).update(response.responseJSON.error),
                onSuccess: response => $(output).update(response.responseJSON.qrcode),
            });

        });
    })('qrcode-settings', 'qrcode-output', './qrcode.php');
</script >
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Jan 12 2018 17:31
¯\_(ツ)_/¯
smiley
@codemasher
Jan 12 2018 17:31
i love this API. it's still the best after all the years.
ptolstoi
@ptolstoi
Jan 12 2018 17:34
yeah true, for that one case where you don't really have to chain anything with promises ;)
smiley
@codemasher
Jan 12 2018 17:34
that works the same way in scale
it depends heavily on how your application is designed - much like the promises API which assumes you'd do everything in the client
ptolstoi
@ptolstoi
Jan 12 2018 17:36
yup, promises are a blessing for backend where you have to query multiple dbs
smiley
@codemasher
Jan 12 2018 17:36
but... why would you do all that from the client?
ptolstoi
@ptolstoi
Jan 12 2018 17:37
don't know, firebase? xD
Eearslya Sleiarion
@Eearslya
Jan 12 2018 17:37
"why use javascript libraries so heavily" just sounds to me like "why use iostream when printf is a perfectly functionable solution?"
smiley
@codemasher
Jan 12 2018 17:37
you know that argument is silly
prototype was designed to go hand in hand with a rails server, minimizing overhead etc
ptolstoi
@ptolstoi
Jan 12 2018 17:38
I mean just do 2 requests, one for the Map and one for the continent with Ajax.Request
Eearslya Sleiarion
@Eearslya
Jan 12 2018 17:38
it's the same principle; the libraries just make it so you have to worry less about HOW it works and focus on what it DOES
smiley
@codemasher
Jan 12 2018 17:39
while also adding a crapload of useless overhead
Eearslya Sleiarion
@Eearslya
Jan 12 2018 17:39
useless to some
smiley
@codemasher
Jan 12 2018 17:39
to the client, like 99%
ptolstoi
@ptolstoi
Jan 12 2018 17:39
what do you mean exactly by "useless"?
smiley
@codemasher
Jan 12 2018 17:40
it's like installing the visual X runtimes on windows before you start your newly installed app
while at the same time you could go without it
Eearslya Sleiarion
@Eearslya
Jan 12 2018 17:40
I would also hardly call speeding up development time and reducing debugging time "useless"
smiley
@codemasher
Jan 12 2018 17:42
why would you want to "speed up development time" on the cost of your user's data plan and security (in case of JS especially)
Eearslya Sleiarion
@Eearslya
Jan 12 2018 17:42
Yes, you absolutely could do everything you can do with React in plain JS and cut out everything you don't need and make it perfectly lean
but why take all that time?
ptolstoi
@ptolstoi
Jan 12 2018 17:43
yeah but you use the same argument ppl who used Assembler when C came up ^^
Eearslya Sleiarion
@Eearslya
Jan 12 2018 17:43
Security? A widely-used, open-source library constantly in use by hundreds of people is less secure than some random programmer writing their own implementation?
smiley
@codemasher
Jan 12 2018 17:45
we're still talking about the web. which should be accessible for everyone without killing a data plan by just loading a website. ok, of course this doesn't apply to you specifically, but think about it.
Eearslya Sleiarion
@Eearslya
Jan 12 2018 17:45
400kb of a minified JS library that can be cached for days or weeks is hardly going to kill data plans
ptolstoi
@ptolstoi
Jan 12 2018 17:45
yeah but I think that are two different things (kinda)
smiley
@codemasher
Jan 12 2018 17:45
400kb JS
...
ptolstoi
@ptolstoi
Jan 12 2018 17:46
yeah compare it to a native app
the question is, should you use react for every webpage
Eearslya Sleiarion
@Eearslya
Jan 12 2018 17:46
absolutely not
ptolstoi
@ptolstoi
Jan 12 2018 17:47
exactly
smiley
@codemasher
Jan 12 2018 17:47
but... this is the status quo
ptolstoi
@ptolstoi
Jan 12 2018 17:47
is it though?
smiley
@codemasher
Jan 12 2018 17:47
and this is exactly what Thomas is ranting about
(most of the time)
Eearslya Sleiarion
@Eearslya
Jan 12 2018 17:48
okay fine, my rails app has an 800kb JS file (which is react) but that's still a drop in the bucket
smiley
@codemasher
Jan 12 2018 17:48
rightfully so
Eearslya Sleiarion
@Eearslya
Jan 12 2018 17:48
yes, but thomas also seems to be adamant that no library ever be used anywhere
smiley
@codemasher
Jan 12 2018 17:48
what's wrong with that?
ptolstoi
@ptolstoi
Jan 12 2018 17:49
you could never use gmail in your browser?
smiley
@codemasher
Jan 12 2018 17:49
omg xD
tbh, i only use prototype for convenience to get around the ugly fetch API
Eearslya Sleiarion
@Eearslya
Jan 12 2018 17:49
you are vastly underestimating the benefit of having many people contributing to a singular project
smiley
@codemasher
Jan 12 2018 17:50
maybe, maybe not.
Eearslya Sleiarion
@Eearslya
Jan 12 2018 17:50
you brought up security in js libraries; people review the code for these and find tiny little vulnerabilities all the time. not every programmer writing js for their sites is going to know how to fight things like timing attacks
smiley
@codemasher
Jan 12 2018 17:50
openssl proves you wrong
ptolstoi
@ptolstoi
Jan 12 2018 17:51
and every open amazon bucket right :P
Eearslya Sleiarion
@Eearslya
Jan 12 2018 17:51
just because an open-source library was found to have vulnerabilities doesn't mean that Joe Shmoe should use his own SSL implementation for security
smiley
@codemasher
Jan 12 2018 17:51
i rant about widely used libraries i come across every now and then
like the OAuth ones
and you would't believe the scarieness of that code
Eearslya Sleiarion
@Eearslya
Jan 12 2018 17:52
honestly, using openssl vulns as an argument is just...fundamentally flawed
smiley
@codemasher
Jan 12 2018 17:52
because most people - even devs just don't fucking care about other people's code
i see that on my QRcode library, which has kinda gone viral
ptolstoi
@ptolstoi
Jan 12 2018 17:53
yeah but how do you fix the issue by doing evertyhing yourself?
smiley
@codemasher
Jan 12 2018 17:53
by rewiting the shit i see
ptolstoi
@ptolstoi
Jan 12 2018 17:54
that's financially not feasable
where do you stop? at OS level? :D
driver? firmware?
smiley
@codemasher
Jan 12 2018 17:54
no really, those OAuth libraries have taught be to read each library carefully before using it. if you don't or can't... well... bless you.
(also, noone should be using those 2-3 popular php OAuth libs anymore. really!)
ptolstoi
@ptolstoi
Jan 12 2018 17:56
to be honest I don't really get your point xD
smiley
@codemasher
Jan 12 2018 17:57
my problem is that i'm unable to word my abstract thoughts most of the time
it's about time that people stop wasting their time with javascript and develop telepathic communication devices instead
ptolstoi
@ptolstoi
Jan 12 2018 17:58
haha true... but I hope it will be less bloated :P
smiley
@codemasher
Jan 12 2018 17:59
ugh, now thinking about that, maybe i don't want that now.
ptolstoi
@ptolstoi
Jan 12 2018 17:59
we could use it to tell mo to give lye more time to work on the API :D
Eearslya Sleiarion
@Eearslya
Jan 12 2018 18:00
so..wait, you hate that people use popular libraries because those libraries suck, so your solution is to write your own library for people to use? seems..a little circuitous
smiley
@codemasher
Jan 12 2018 18:00
no @Eearslya, like... no.
this is what i mean about client side apps and security
image.png
Archomeda
@Archomeda
Jan 12 2018 18:02
i eh... came back and saw 100+ messages, and i have no clue what has exploded
ptolstoi
@ptolstoi
Jan 12 2018 18:03
@codemasher this looks like nothing to me
smiley
@codemasher
Jan 12 2018 18:03
yea, because that's one of the better examples
Eearslya Sleiarion
@Eearslya
Jan 12 2018 18:03
what exactly do JS libraries have to do with analytics/CDNs?
ptolstoi
@ptolstoi
Jan 12 2018 18:03
yeah I don't know what the pictures tries to show us
smiley
@codemasher
Jan 12 2018 18:05
dear god, please let my introvert brain switch to conversation mode, so that they understand what i mean.
no really, am i talking chinese or am i really tinking too abstract?
Archomeda
@Archomeda
Jan 12 2018 18:06
...
Eearslya Sleiarion
@Eearslya
Jan 12 2018 18:06
I understand that third-party includes can introduce some privacy/security concerns; I just don't understand what that has to do with the topic of libraries
smiley
@codemasher
Jan 12 2018 18:07
ok, you got me halfway right here
ptolstoi
@ptolstoi
Jan 12 2018 18:07
exactly @Eearslya
smiley
@codemasher
Jan 12 2018 18:07
the topic of libraries is part of the concerns
because people tend to use "well tested" and "popular" libraries without questioning
Eearslya Sleiarion
@Eearslya
Jan 12 2018 18:08
I would argue that people use those libraries without question because others HAVE questioned it
blind faith of just any project on github is bad
but I'm fairly sure I can trust something like jquery, with tens of thousands of eyes on it
smiley
@codemasher
Jan 12 2018 18:09
you'd also trust laravel, right?
which includes one of said oauth libs
Eearslya Sleiarion
@Eearslya
Jan 12 2018 18:09
what exactly is wrong with that lib anyway?
smiley
@codemasher
Jan 12 2018 18:10
it's sacry, prone to several bugs and the mocked tests don't do anything
@queicherius happen to have any additional info on that "TP not showing new stuff since 1/9" thread?
smiley
@codemasher
Jan 12 2018 18:10
not to mention it's for php 5.3
ohai @lye
ptolstoi
@ptolstoi
Jan 12 2018 18:11
hi @lye :D
:wave:
darthmaim
@darthmaim
Jan 12 2018 18:11
from the gw2efficiency discord: "[2:45 PM] Kakirtog: It tells me my key is invalid when I try to see my listings, but it's definitely not. I even made a new key to make sure."
[3:18 PM] Kakirtog: It's only the current listings I can't see, the history is fully available...
bizarre
everything seems to be working for me, tried a few times to reproduce it
darthmaim
@darthmaim
Jan 12 2018 18:14
maybe @queicherius can get you a broken key
I might be able to track it down with a key
Eearslya Sleiarion
@Eearslya
Jan 12 2018 18:15
are those gw2 builds? why only 522? o:
no those are API frontend deploys
Eearslya Sleiarion
@Eearslya
Jan 12 2018 18:15
ahh
there was a build on tuesday as well
to add more fuel to the fire
but nothing should have touched the trade server so I doubt that's the issue
smiley
@codemasher
Jan 12 2018 18:16
@Eearslya the oauth lib was one example, another one was a "prepared statements" db wrapper which actually emulated prepares
darthmaim
@darthmaim
Jan 12 2018 18:16
some people said it was broken ingame too
smiley
@codemasher
Jan 12 2018 18:16
which was probaly one of the scariest things i've seen
Eearslya Sleiarion
@Eearslya
Jan 12 2018 18:17
...Emulated? Like, it did all of the sanitization/replacement itself?
smiley
@codemasher
Jan 12 2018 18:17
yep
Eearslya Sleiarion
@Eearslya
Jan 12 2018 18:17
well I can't argue with that
smiley
@codemasher
Jan 12 2018 18:18
like in the "NEVER DO THIS" examples
Eearslya Sleiarion
@Eearslya
Jan 12 2018 18:18
I do want to read through rails' code one day
smiley
@codemasher
Jan 12 2018 18:18
sometimes i think there are just evil people (spoiler: there are!) who just put that shit out in hope to exploit someone
smiley
@codemasher
Jan 12 2018 18:19
look at that npm .env desater thing
what exactly was that lib that stole .env files?
I'm not seeing any code changes in the last six months
Eearslya Sleiarion
@Eearslya
Jan 12 2018 18:20
I mean, I am not disagreeing that blind faith is horrible. But non-security people writing security-centric code themselves can easily be equally disastrous.
Archomeda
@Archomeda
Jan 12 2018 18:20
that... makes it difficult
smiley
@codemasher
Jan 12 2018 18:21
that for sure, but OAuth is really not magick
yeah. Gonna put this off until I can get a key.
darthmaim
@darthmaim
Jan 12 2018 18:22
lye, got someone with a key
where can they message you?
here or send an email to lawton@arena.net
darthmaim
@darthmaim
Jan 12 2018 18:23
:+1:
should get an email soon
woot
hmm, the API key sent works for me against the API in DFW
let's... check... frankfurt
hmm works in frankfurt
@queicherius I think this might be on your end :O
darthmaim
@darthmaim
Jan 12 2018 18:40
the linked reddit threads are saying they have problems with gw2bltc
yeah.
lemme send this email real quick
darthmaim
@darthmaim
Jan 12 2018 18:40
and: [11:27 AM] Black March: Yeah, having trouble with spread sheets as well... Was hoping a solution would be available here
so its not just gw2efficiency
Werdes
@werdes
Jan 12 2018 18:41
aah, @lye that cache thingy is still broken :( this time 2-4 was late until 18:20 utc
magic
honestly
I'm not sure it's the cache
I think there's something really weird going on
darthmaim
@darthmaim
Jan 12 2018 18:43
oh and with the key I got you, I also asked if the key was still broken first
Werdes
@werdes
Jan 12 2018 18:43
:worried:
yeah in the email they say they get back an "API key is invalid" error
def not invalid
darthmaim
@darthmaim
Jan 12 2018 18:45
the "API key is invalid" could be a generic gw2efficiency error text
it might be a bad link between gw2e and the API servers
but that'd show up as timeouts on queicherius' side, so I doubt it's that
darthmaim
@darthmaim
Jan 12 2018 18:47
and still wouldn't explain the gw2bltc.com and sheets errors
true.
I dunno, there isn't much I can do without a repro :<
there's no errors being spit out and all the charts look normal
@darthmaim I had them place an order on the TP and it showed up in the endpoint
so... not really sure
darthmaim
@darthmaim
Jan 12 2018 19:11
:confused:
likewise
Werdes
@werdes
Jan 12 2018 20:05
"A new build is available in 10 Minutes"
2 hours into EU Reset
Feelsbadman :(
smiley
@codemasher
Jan 12 2018 20:06
some things never change :D
Eearslya Sleiarion
@Eearslya
Jan 12 2018 20:29
I can still hear the collective groan of a 60-person teamspeak channel...
Werdes
@werdes
Jan 12 2018 20:41
i can still feel my 3 mbit internet connection crying as two computers try to download the patch as fast as possible.
now i'm in a slow moving queue
Edgar Doiron
@Coffee4cr
Jan 12 2018 20:48
3 mbit internet?
where do you live?
under a rock?
smiley
@codemasher
Jan 12 2018 20:50
a rock that is... germany :D
reminder that i had 384kbit until 2016
the irony is that we have the DE-CIX
Werdes
@werdes
Jan 12 2018 20:52
yeah but privatising the main provider was a mistake
smiley
@codemasher
Jan 12 2018 20:53
yep
Werdes
@werdes
Jan 12 2018 20:53
infrastructure cannot be managed by private companies
smiley
@codemasher
Jan 12 2018 20:53
indeed
Werdes
@werdes
Jan 12 2018 20:54
we have a social democracy here, enough reason to seize the means of production nationalize it
smiley
@codemasher
Jan 12 2018 20:54
nah, germany is driven by capitalism alone
Werdes
@werdes
Jan 12 2018 20:55
yup, that works as long as our economy is strong enough to sustain prosperity alone
currently it is, fortunately
wow this got political very quickly :smile:
smiley
@codemasher
Jan 12 2018 20:56
yea, but it makes us think that we could also manage public things through capitalism
like the deutsche bahn or healthcare
Werdes
@werdes
Jan 12 2018 20:56
well we're probably pretty good off with our health care
db is a joke though
smiley
@codemasher
Jan 12 2018 20:57
inded our healthcare is quite good (on the surface), but i'd rather have not a private insurance provider (not meaning private insurance, though)
idivait
@idivait
Jan 12 2018 21:33
Is the wiki down for the rest of you guys? Or just my computer.
smiley
@codemasher
Jan 12 2018 21:34
wiki is kill
no wait, it responded
after like 30 sec
still loading...
still...
wow, the page is loaded
hiccups
David Reeß
@queicherius
Jan 12 2018 22:59
@lye gw2e direclty sends it to the API tho, I don't proxy that. @darthmaim Do you still have that key? PM me? <3
I have the key, one sec
Werdes
@werdes
Jan 12 2018 22:59
alt
Questionable
darthmaim
@darthmaim
Jan 12 2018 23:04
looks perfect
also @queicherius, I never had the key

wat, @lye:

[11:56 PM] queicherius: Kakirtog Could you link me that new key / did you try it on gw2e?
[12:04 AM] Kakirtog: I shall do both of those things now
[12:05 AM] Kakirtog: Actually, I shall not
[12:05 AM] Kakirtog: Because it's working again

:O
@werdes yeah, there's a cache issue on the wiki
we have a fix for it, but justin didn't want to deploy friday afternoon
should land on monday
darthmaim
@darthmaim
Jan 12 2018 23:18
[12:12 AM] queicherius: Its sporadicly working, was able to reproeduce with my test api key
I honestly think there's a network issue somewhere
I haven't been able to repro anything from either DFW or FRA API endpoints
That, and it looks like the transaction histories may have been purged
David Reeß
@queicherius
Jan 12 2018 23:19
So /current/ seems to be working now at least from what I can tell, but /history/ is completely empty -> possible purge
What he said
smiley
@codemasher
Jan 12 2018 23:19

we have a fix for it, but justin didn't want to deploy friday afternoon

you should totally bring him here, we'll convince him of friday 5pm deploys :D

nah he said something like "please never be a sysadmin"
Quaggan BooOOoot
@QuagganBooOOoot
Jan 12 2018 23:19

Is anybody else experiencing API difficulties following the 1/9 patch?
by Reedtanguerra.6425 in Guild Wars 2 Discussion

I'm a bit confused. I use GW Efficiency to monitor my trading post activity via my API key. It's only picking up listings placed prior to the 1/9 patch and nothing more recent. Is this happening to anyone else?

smiley
@codemasher
Jan 12 2018 23:19
lmao