#dev 2017-09-05

2017-09-05 UTC
KartikPrabhu, [miklb], snarfed and tantek joined the channel
#
bear
this webmention.rocks test #23 is seriously pissing me off
#
bear
I have restructured my test code to only do a single GET and it still returns a 404
#
[miklb]
pours bear a nice cup of tea.
#
bear
thanks [miklb] ++
#
bear
[miklb]++
#
Loqi
miklb has 9 karma in this channel (45 overall)
#
snarfed
bear: consider just being incomplete. pretty much all spec implementations are anyway. :P
#
bear
this is in the test code for ronkyuu to make sure I don't break something
#
bear
so I don't want to consider it not supporting something that is an Official Test
#
snarfed
eh. you can always choose not to support something
#
bear
grrr :)
#
snarfed
not ideal obviously, but priorities and tradeoffs
#
bear
i'm also curious is if this is some PHPism that has snuck into what has been up until now a very language agnostic test
snarfed joined the channel
#
bear
ok, have a basic test that is at least now returning 400 invalid_target
gRegorLove joined the channel
#
Ruxton
aaronpk: posted a photo from my photos stream and OWG went down
#
aaronpk
lolwut
#
Ruxton
gateway timing out now
#
aaronpk
Must be specific to your account
#
aaronpk
i was just able to log in
#
Ruxton
it happened on Friday too, came back today and all was good for 2 posts
#
aaronpk
will take a look in a few, just heading back to my hotel
#
aaronpk
What URL are you hitting where you see the timeout?
#
Ruxton
I'd just posted a photo and it tmed out on refreshing of feed
#
Ruxton
following that, trying to just hit /photos would time out
#
Ruxton
i dropped my session cookie and was able to log back in
#
aaronpk
I wonder if it's timing out trying to talk to Instagram
#
Ruxton
yeah that might make sense, started doing it again ;)
#
Ruxton
and then was ok
#
aaronpk
That's one of the nice things about PHP, you can't really crash the whole app
#
bear
ah, I think my problem with following that redirect is that I follow the redirect and also query it for webmention endpoint
#
bear
bah - that's a 404
#
bear
so I get now, depending on each of the tests a 400, 404 and 410
#
aaronpk
410 means the code in the URL is expired
#
aaronpk
404 is probably incorrect relative resolution
#
bear
all the tests run very quickly
#
bear
I have a super simple python app to test now
#
bear
GET https://webmention.rocks/test/23/page returns 200 after redirecting once (a 302) to page/XnA0D6zEUIs2st1bG5kb which is resolved to https://webmention.rocks/test/23/page/XnA0D6zEUIs2st1bG5kb
#
Loqi
[Webmention Rocks!] Discovery Test #23
gRegorLove joined the channel
#
bear
son of a bitch
#
bear
the whole issue was because I was sending the webmention payload of the redirected target url and not the original
#
aaronpk
oh i thought i said that yesterday
#
bear
you probably did but my brain was down a couple rabbit holes and I didn't get context right
#
bear
ok, now that I have a one-off that works, now I can see if ronkyuu needs any tweaks
#
aaronpk
Ruxton: so i see the timeouts in the logs, but I don't understand why it's not timing out still
#
aaronpk
also what's your IG username? can't find anything in ownyourgram that matches "ruxton"
snarfed1, snarfed, KartikPrabhu, gRegorLove, ben_thatmustbeme and EmreSokullu joined the channel
#
Ruxton
aaronpk: instagram username is rhythmnpoetry
snarfed, snarfed1, EmreSokullu and tantek joined the channel
#
tantek.com
edited /rsvp (+369) "/* Tantek */ multi-POSSE-RSVP"
(view diff)
barpthewire joined the channel
#
loqi.me
created /power_user (+46) "prompted by tantek and dfn added by tantek"
(view diff)
tantek, [kevinmarks], [colinwalker], [pfefferle], jeremycherfas, EmreSokullu, EmreSoku_ and davidmead joined the channel
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[jeremycherfas] Still happening even with redis and deleting `.jobs` On another try, I noticed that `.jobs` was continuing to update, and at the end of the process contained ```` {"jobs":[],"f26ccae0-9229-11e7-86ef-4b62a4f0a8fe":{"status":"ready","numFrames":84...
EmreSokullu and EmreSok__ joined the channel
#
schmarty
Morning, -dev
#
Loqi
schmarty: jeremycherfas left you a message 37 minutes ago: Re audiogram: you may find this interesting https://github.com/nypublicradio/audiogram/issues/63#issuecomment-327141904
#
schmarty
!tell jeremycherfas I have definitely seen that error, and discovered like you did that processing was happening just fine despite the status updates failing. The BBC fork has pretty much always given me this error but produced a video eventually
#
Loqi
Ok, I'll tell them that when I see them next
jeremycherfas_, eli_oat, [colinwalker], singpolyma, jeremych_ and jeremycherfas joined the channel
#
jeremycherfas
Zegnat: I managed to GET a return from the various WithKnown endpoints, and I am trying to make sense of them
#
Loqi
jeremycherfas: schmarty left you a message 2 hours, 36 minutes ago: I have definitely seen that error, and discovered like you did that processing was happening just fine despite the status updates failing. The BBC fork has pretty much always given me this error but produced a video eventually
EmreSoku_ joined the channel
#
jeremycherfas
schmarty: I remained convinced that it is all magic.
#
jeremycherfas
Zegnat: The key point, I think, is that the payload must be a "JSON encoded string of variables"
#
jeremycherfas
I guess that means that when I construct $known['body'] I have to make sure that the Description I want to send is the second element.
[miklb] and jeremycherfas joined the channel
#
www.svenknebel.de
edited /IRC (+64) "/* Bouncers, Client/Server */ extend quassel description - there is a all-in-one"
(view diff)
KevinMarks joined the channel
#
petermolnar.net
edited /IRC (+142) "/* Install an IRC app */"
(view diff)
#
petermolnar.net
edited /IRC () "(-1372) no need for the early list of clients, there is a longer, better one at the bottom"
(view diff)
#
seblog.nl
edited /IRC (+795) "bring back some of the "Install an IRC app" + move the app that was only mentioned above to the Clients-section"
(view diff)
EmreSoku_ joined the channel
#
jeremycherfas
Still trying to POST to Withknown. This shows what Known expects from a POST https://gist.github.com/jeremycherfas/e308e262da66382c69f6719c4e135b7b
snarfed joined the channel
#
jeremycherfas
Shouldn't json_encode create and object rather than a string?
#
sknebel
jeremycherfas: no, json_encode turns an object into a JSON string. how are you generating what you send and how do you send it?
#
jeremycherfas
The object is an array
#
jeremycherfas
Can I share a gist of the PHP with you?
#
sebsel
We all start with rudimentary code :)
tantek joined the channel
#
sebsel
jeremycherfas You are aware you just shared your Known API key? Better change that now.
#
sknebel
jeremycherfas: do you have any docs on the API? according to https://phyks.me/2015/01/publishing-through-the-known-api.html, the API examples use objects/dicts, not arrays?
#
sebsel
In that case, it would be something like: $mybody = ['link' => $mylink, 'description' => $mydescription]; // array to send
#
jeremycherfas
A message payload containing the variables expected by the handler, if applicable. This may be in the format of URL encoded variable strings, or a JSON encoded string of variables.
#
jeremycherfas
Let me read that other one.
#
sknebel
I'd read the docs the same way, although they annoyingly don't show an example of a JSON request
#
ben_thatmustbeme
what is mixi?
#
Loqi
Mixi.jp is a popular content hosting silo and activity aggregator which is the most popular social network in Japan https://indieweb.org/Mixi
#
ben_thatmustbeme
oops, wrong room
#
jeremycherfas
If I send just the link as a single element in the json_decode, it works OK.
#
sknebel
weird, might be a special case for bookmarks. the examples in the docs clearly show key:value pairs being send ( that's the only thing you can do in formencoded)
#
sknebel
so I'd try a json dict/object
#
jeremycherfas
That other page is very informative. I should look at the API tester.
tantek, KevinMarks and [colinwalker] joined the channel
snarfed, EmreSoku_, [cleverdevil] and tantek joined the channel
jeremycherfas joined the channel
#
Loqi
[aaronpk] #89 what should senders do when they receive a 3xx response from the webmention endpoint?
#
snarfed
Zegnat: yup, iirc i asked aaronpk the same thing when i saw wm.io do it, which prompted that issue
#
snarfed
(it's both unusual in the wild and not in the spec :P)
#
Zegnat
Is it unusual? I thought several people with input boxes for URLs (like sebsel has) do the redirect? You would know though, I guess, you have the data :P
#
snarfed
yup, unusual. web forms are the most common cause, but afaik only the minority handle automated wms and interactive form posts with the same code path
#
snarfed
sebsel may be one
KevinMarks, [kevinmarks], snarfed and EmreSoku_ joined the channel
#
sebsel
snarfed Hmz, I have no idea why it 302ed. It should not do that.
#
sebsel
aaa, I see. I changed the URL.
#
sebsel
And because of the way I used Kirby's router, it hits that redirect when it tries to find the Page-object that corresponds to the URL via the router.
#
sknebel
that routing seems to give you troubles a lot
#
sebsel
does a Bridgy recrawl
#
sebsel
yes, I really need to fix that.
#
sebsel
It's ugly code anyway
#
sebsel
re-crawling my site does not make Brid.gy see the new URL
#
sebsel
(Better to fix it on my end anyway)
#
sebsel
should bridgy detect those changes?
#
snarfed
doesn't follow, mind restating the problem?
#
snarfed
also gotta run, back in 20
snarfed joined the channel
#
sebsel
oh no, what have I done. I now get all webmentions twice, because I changed the URL.
#
sebsel
I will try and capture this in a Github Issue, then see what parts are wrong and where.
tantek joined the channel
#
Loqi
[sebsel] #769 Changing URLs (use uid)
snarfed and EmreSoku_ joined the channel
#
snarfed
sebsel: thanks! out of curiosity, should your site have de-duped the wms? since it knows the two target URLs are the same post
#
sebsel
Well, it redirects now
#
sebsel
But if it didn't, it would dedupe right after.
#
sebsel
Since it finds the same post, and then handles the webmention on that post.
#
snarfed
but it didn't actually de-dupe them...?
#
sebsel
No, it did.
#
sebsel
You can see 15 likes on https://seblog.nl/2017/09/05/2/nblijmegen and brid.gy did send all of them twice, once for the old, once for the new URL.
#
snarfed
i'm confused. so the problem is just that bridgy sent dupes at all, which could be avoided?
#
Loqi
[Sebastiaan Andeweg] #hliversum #nijmegen Maar zo kan hij ook.
#
sebsel
So it did dedupe.
#
sebsel
Hm, yeah, interesting point.
#
snarfed
great! ok. bridgy sometimes sends more than one wm POST even for the same target URL. preventing some or all of those isn't a high priority right now, since receivers are expected to handle them.
#
sebsel
No it does not seem like a priority indeed, now that you say this.
#
snarfed
also bridgy only occasionally fetches target URLs, and to de-dupe by uid, it would always have to fetch them, which i'm unlikely to add
#
sebsel
No I guess it's fine to have brid.gy know multiple URLs of posts.
#
sebsel
So then I just need to fix my bug. We can close the issue then.
#
snarfed
ok! thanks for explaining
#
sebsel
well, thanks for Bridgy :)
jeremycherfas, tbbrown, KevinMarks_, KevinMarks and [kevinmarks] joined the channel
#
[kevinmarks]
Also, if you have changed the urls permanently, use 301 not 302
tbbrown, [cleverdevil], [colinwalker], KevinMarks, snarfed, jjuran, [manton], EmreSoku_, KartikPrabhu and tantek joined the channel
#
loqi.me
edited /User:Kaja.sknebel.net (+36) "sknebel added "fix username changes on reconnect" to "See Also""
(view diff)
EmreSoku_ and KartikPrabhu joined the channel
#
tantek.com
edited /Skype (+856) "Troubleshooting / Microsoft account doesn't exist"
(view diff)
KevinMarks and EmreSoku_ joined the channel
#
tantek
nice article that I think I missed when it was first published (was in Paris for CSSWG f2f I think) https://perchrunway.com/blog/2017-08-01-being-part-of-the-indieweb
#
Loqi
Rachel Andrew
davidmead, KevinMarks, [kevinmarks], EmreSoku_, EmreSok__, tantek and [cleverdevil] joined the channel