#dev 2022-04-30

2022-04-30 UTC
jacky, [Murray], [pfefferle], angelo, gxt, mro, Kooky, [jeremycherfas], sebsel, neceve, jkphl and jbove joined the channel
#
jbove
Anyone else getting an error 500 on this test? validate-h-card/?url=https%3A%2F%2Fjohanbove.info
#
jbove
It works for Tantek's site, but mine is causing an error 500 - not sure how
#
omz13
jbove That resource has two h-cards in it, perhaps that is causing a hiccup?
tetov-irc, mro, zinzy and gRegor joined the channel
#
GWG
[tantek]: I'm not heard in the IndieAuth room, but Indielogin is not a replacement for IndieAuth.com.
#
[tantek]
if anyone else supports letting other people sign into their website, add yourself to: https://indieweb.org/Web_sign-in#IndieWeb_Examples
#
[tantek]
Web sign-in is about the UX of doing so (see https://indieweb.org/Web_sign-in#Details for minimum expected UX), not about support of any particular backend protocol (which can be used to support said UX, though no specific protocol is required)
jjuran, mro, superkuh, [schmarty], [snarfed], [fluffy], neceve, jacky and jacky_ joined the channel
#
jbove
omz13: Thanks - a quick check shows me 3 elements with the class name "h-card" - a bit weird how the indiewebify check would crash on that. Will see further.
#
omz13
jbove: I also saw a link to a me that was an h-card object and not a simple url.
#
jbove
Will try setting up the indiewebify server from github
#
jbove
It's the one in the webmention
#
omz13
you can use my https://toolbox.imoxia.com to see the mf data by using the fetch public resource option.
jacky joined the channel
#
jbove
omz13: Tried, but the toolbox is asking for authenticating, wich I tried, but it is failing
apu joined the channel
#
jbove
like after the indieauth step - https://toolbox.imoxia.com/gate/callback?code= .. .
#
jbove
error "Something bad happened when asking the AS (https://indieauth.com/auth) to verify a code: expected response to be application/json but application/x-www-form-urlencoded"
#
omz13
jbove: I was just looking at my server when I saw the system log reporting your login issues
#
omz13
and now you are stuck with the callback handler looping. gah!
#
omz13
I captured some logging info... will see if I can work out where its going wrong
mro joined the channel
#
jbove
Hopefully the logging information does not give you access to session?
#
jbove
Hopefully the logging information does not give you access to the session?
#
jbove
Just out of curiosity :-)
#
omz13
I see the request I send and dump the response payload when it goes wrong.
#
omz13
I think its happening because I didn't explicitly set an Accept header and indieauth.com is defaulting to application/x-www-form-urlencoded
#
omz13
give me a minute or two to push out a patch.
#
jbove
Sure, no rush needed :-)
#
omz13
jbove: can you kindly try again... I added a fix and if that does not work it will capture some applicable debug for me
#
omz13
I saw the activity and that it worked. huzzah!
#
jbove
and also the fetch public resource did not show anything unusual
#
omz13
I only gave it a quick look but the mf on your homepage looked unusual... a h-card in a h-card?
#
jbove
Yeah, just noticed that now too - it's the webmention
#
jbove
I have a h-card on the main element of the page, but also used h-card in the link of any webmention - that might cause the trouble?
#
omz13
and toolbox's profile discovery is showing very little for you... I'll look into that later
#
jbove
I probably should move the webmentions out of the h-card
#
jbove
Not sure why I actually bother with the webmentions on my site - not getting much interaction ;-)
#
jbove
Which is fine
#
jbove
Thanks for the help omz13
#
omz13
fyi, toolbox's fetch resource is very naïve for the mf dump... it simply dumps all objects and does not take into account where they originate in the DOM... the profile discovery function is more sophisticated and sensitive (and I look at the tomorrow when there is fresh coffee in my body)
#
omz13
no worries; I had intermittent login failures that I could not locate, so finally good to discovery and fix. Ironically I have better response handling code elsewhere and had not refactored it into this handler.
AramZS joined the channel
#
jbove
Moving the webmentions out of the h-card fixed it for me - at least now indiewebify.me returns the h-card correctly
#
sknebel
file an issue on it please, with an example of what hte code was like before
#
jbove
Yes, will do
#
sknebel
thank you!
mro joined the channel
#
Loqi
[johanbove] #99 Validate h-card fails on nested h-cards and returns an error 500
gRegor joined the channel
#
Loqi
[gRegorLove] #5 Fix magic get method for microformats type
[zinzy] joined the channel
#
aaronpk
gRegor++
#
Loqi
gRegor has 4 karma in this channel over the last year (30 in all channels)
#
gRegor
good q on whether it should return an array. I made it return a string to match the code example. The string is what I want, going to insert it into the HTML.
#
gRegor
I guess returning an array is most correct, in case there's ever a mp json request with multiple types
tetov-irc joined the channel