#dev 2016-10-19

2016-10-19 UTC
KevinMarks_ joined the channel
#
bear
ohhh
#
bear
micropub.rocks uses a POST with an action=delete and not a DELETE
#
KartikPrabhu
does anything use HTTP methods other than GET and POST?
#
bear
my command line tools does :)
#
bear
but i'm adjusting
#
KartikPrabhu
i mean ones than respond
#
bear
just got done implementing all of the multiparts
#
KartikPrabhu
i.e.e servers
#
bear
yea, I see your point - any api I build always honours them - but I'm way in the minority for that
#
KartikPrabhu
also micropub does not use PUT ;)
#
bear
yea, i've made that mental note now
#
bear
ok, now I think I found a bug in micropub.rocks
#
bear
server test 500 (the delete) isn't showing a checkmark even tho my return was 202
#
bear
issue filed
KevinMarks, KevinMarks_, loicm, miklb, tantek, AngeloGladding, cweiske, plindner and nebulon joined the channel
#
nebulon
Hi there, after hearing about indieweb every so often, I finally looked into the thinking behind that. We have built an opensource platform to self-host apps https://cloudron.io/ I think our philosophy is very similar
#
nebulon
are there any strong opinions in this community about running apps on-premise, virtual servers or nowadays self-hosting into container environments?
#
kodfabrik.se
edited /2016/Berlin (+32) "/* IndieWebCamp Hoodies */"
(view diff)
#
jkphl.is
edited /2016/Berlin (+29) "/* IndieWebCamp Hoodies */"
(view diff)
tantek joined the channel
#
aaronpk
bear: oh boy I see what happened. I copied that "returned ..." line from creating a post, for which the response is 201 or 202. then when I copied it for the rest of the tests, I just added 204
#
bear
np - I just made my code return 200
#
aaronpk
the text is wrong for a bunch of other tests too :)
#
bear
glad I found it then
tantek joined the channel
#
sebastianlasse.de
edited /2016/Berlin (+45) "/* Participating */ Added participant without domain yet by request"
(view diff)
ChrisAldrich and gRegorLove joined the channel
#
tantek.com
edited /Guest_List (+0) "need more sign-ups for LA so..."
(view diff)
ChrisAldrich and KartikPrabhu joined the channel
#
jonnybarnes.uk
edited /2016/Berlin (+56) "/* IndieWebCamp Hoodies */"
(view diff)
chrisaldrich1 joined the channel
#
GWG
Speaking of Webmentions, if you try to send a mention and get a response status not 200-202 what makes sense to do?
#
sknebel
GWG: mostly didn't to mix with the live-log
#
GWG
Good point
#
GWG
I always think of dev as really technical conversions
#
sknebel
some senders probably retry later (e.g. bridgy does for at least some error codes)
#
tantek
GWG, plumbing and error codes and such are better here
#
sknebel
especially 429 and 503 indicate temporary errors
#
tantek
like that :)
#
GWG
Basically, the question is what should be the response, if any, to failure?
#
GWG
Or does it need to drill down more?
#
sknebel
not sure when it starts to become academic as well ;)
#
sknebel
retrying once or twice later seems reasonable
#
GWG
The way the code I am looking at is set up, anything less than 400 is registered as a success. Anything between 400 and 501 is set to retry.
#
GWG
Seems broad
#
sknebel
i'm not sure if you should retry exactly 400, since in the spec that indicates that your request was malformed
#
sknebel
and your retry likely is going to look exactly the same
#
sknebel
and thus will fail again
#
sknebel
getting a 301 redirect wouldn't be a sucess case either
#
GWG
I tagged it as needing review
#
GWG
I am looking at things while preparing an implementation report
#
sknebel
I think only 2xx (strictly 200-202) should count as sucess
#
GWG
And what do you do with the other numbers?
ChrisAldrich joined the channel
#
sknebel
retrying all wouldn't hurt that badly, if not (or if that fails as well) just log and move on
#
sknebel
having a UI to review failures might be useful, some users might want to know if a mention fails so they can contact the owner and figure out what happened
#
sknebel
maybe ask the bridgy guys for numbers: how often do temporary failures happen, what kind of errors do they see that might need special treatment?
#
aaronpk
telegraph doesn't retry, but it does show a red X and you can see the response
#
sknebel
maybe following HTTP-> HTTPS redirects is worth it, that could be an easy to make mistake
#
sknebel
on the other hand, if it is logged you can notice and tell the site owner
#
sknebel
before other senders quietly fail on it
#
sknebel
aaronpk: I assume your site uses telegraph in the backend, but doesn't actually show you the result if you post via micropub?
#
aaronpk
right i only see it when i log in to telegraph
#
jkphl.is
edited /2016/Berlin (+40) "/* IndieWebCamp Hoodies */"
(view diff)
tantek joined the channel
#
loqi.me
created /limited_audience (+20) "prompted by tantek and dfn added by tantek"
(view diff)
#
aaronparecki.com
created /2015/Germany/limited-audience-posts (+2775) "archived from etherpad"
(view diff)
#
aaronparecki.com
edited /private_posts (+136) "/* Silo Examples */"
(view diff)
#
gRegorLove
This page refers to domain.robots.txt. Is that a generic reference to regular robots.txt, or something special? https://developers.google.com/ad-exchange/rtb/disapproved-ads##Destination+URL+not+crawlable
#
aaronpk
i've never heard of domain.robots.txt
#
gRegorLove
Same. Figured I'd double check.
#
gRegorLove
I hadn't heard of the Real-Time Bidding Protocol, either. heh
#
gRegorLove
An ad company is saying the page isn't crawlable, but we're not blocking. ::shrug::
KevinMarks joined the channel
#
gregorlove.com
edited /private_posts (+403) "/* Facebook */ Limited audience, links to files TBU"
(view diff)
tantek joined the channel
#
tantek
can't imagine the shenanigans from folks registering TLDs that are common file *document* extensions like .txt
dansup joined the channel
#
bear
\o/ all of the micropub.rocks create, delete, undelete and some of the update test pass for kaku
#
bear
does the happy dance
#
aaronpk
bear++
#
Loqi
bear has 165 karma (6 in this channel)
#
aaronpk
very nice
#
bear
now onto some of the media and query stuff
#
aaronpk
the media endpoint stuff has been super useful
#
tantek
bear++
#
Loqi
bear has 166 karma (7 in this channel)
#
tantek
kaku++
#
Loqi
kaku has 1 karma
#
bear
the code is mightily ugly right now - but making it pretty comes after making it work
#
tantek
oh I hear that. pretty much my modus operandi for Falcon
#
bear
is there an example of what the json result looks like for a q=config micropub GET?
#
bear
well look at that - the spec has it https://www.w3.org/TR/micropub/#querying
#
Loqi
[Aaron Parecki] Micropub
#
bear
(that wasn't there a while ago)
#
aaronpk
examples++
#
Loqi
examples has 4 karma (1 in this channel)
#
aaronpk
i'm always frustrated when specs don't have examples and try to just describe things in words
#
tantek
that's good feedback for any CR
#
www.boffosocko.com
edited /2016/LA/Guest_List (+5705) "update on RSVPs for LA; Have YOU RSVP'd?!?!"
(view diff)
AngeloGladding joined the channel
#
jonnybarnes.uk
edited /Micropub-brainstorming (+507) "/* Query for places */"
(view diff)
#
jonnybarnes
I take it micropub implementation details should be discussed in here?
#
jonnybarnes
I see a blank reply aaronpk ?
#
jonnybarnes
ahh, need to add that to my todo list, get empji working on my server
#
jonnybarnes
I’m ssh-d into it and running weechat inside tmux
#
jonnybarnes
so if my server doesn’t support emoji...
#
jonnybarnes
anyway yeah
#
jonnybarnes
I have places working okay in my micropub implementtion
#
aaronpk
i'm running weechat too! but using the web interface
#
aaronpk
wow that's awesome
#
jonnybarnes
my client either sends location: <place-url> or location: geo:lat,lng
#
jonnybarnes
for the latter I just do a nominatim reverse lookup and add some text to the note saying in Salford, UK or whatever
#
aaronpk
that seems sensible
#
jonnybarnes
for actual places I add a map to the note
#
aaronpk
place-url where the url is a URL on your site?
#
jonnybarnes
although theres no reason why it can’t be from someone elses site
#
jonnybarnes
the url just needs to return a h-card for a place/venue
#
jonnybarnes
then the endpoint can add that info to the note it created
#
jonnybarnes
my thinking is similar to how with photos you can either upload the file directly with the request
#
jonnybarnes
or give a url to the photo
#
jonnybarnes
the client can also create new places, by making a POST request to the endpoint
#
jonnybarnes
that new place can then be used in the subsequent new note request
#
aaronpk
that sounds great
KevinMarks joined the channel
#
GWG
I have been working on something similar for a while
#
GWG
Places
#
bear
hmm, my media endpoint upload test for the GIF failed, not because it isn't supported but because the GIF must be huge "HTTP/1.1 413 Request Entity Too Large"
#
jonnybarnes
gifs can get quite big
#
bear
just not sure how large to make it
#
aaronpk
Haha yeah I intentionally used a large file
#
Loqi
hehe
#
aaronpk
its animated
singpolyma and tantek joined the channel