Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discovery via Mastodon does not work #35

Closed
acka47 opened this issue May 19, 2020 · 8 comments · Fixed by skohub-io/skohub-vocabs#83
Closed

Discovery via Mastodon does not work #35

acka47 opened this issue May 19, 2020 · 8 comments · Fixed by skohub-io/skohub-vocabs#83
Assignees
Labels
bug Something isn't working

Comments

@acka47
Copy link
Member

acka47 commented May 19, 2020

Reported by @raphlap via Mastodon DM.

E.g. looking up and following a subject on Mastodon like shown in the SWIB19 presentation does not work. Is there something wrong with the webfinger setup?

@acka47
Copy link
Member Author

acka47 commented May 19, 2020

Webfinger lookup seems to work, here is how to do it:

  1. Get the hex-encoded preferredUsername from https://skohub.io/hbz/vocabs-edu/heads/master/w3id.org/class/esc/n06.jsonas (The .jsonas document contains the ActivityStreams description of a concept as ActivityPub actor)
  2. Lookup the resource like this: https://skohub.io/.well-known/webfinger?resource=acct:2f68627a2f766f636162732d6564752f68656164732f6d6173746572773369642e6f72672f636c6173732f6573632f6e3036@skohub.io

A result comes back there but I can see an error in the href URL which looks like this: https://skohub.io//hbz/vocabs-edu/heads/masterw3id.org/class/esc/n06. There is one slash too many after .io and a slash missing after /master. I guess this is the reason for our problem.

@acka47
Copy link
Member Author

acka47 commented May 19, 2020

@acka47 acka47 added the bug Something isn't working label May 19, 2020
@literarymachine
Copy link
Contributor

literarymachine commented May 19, 2020

The error is already in the hex encoded user name, the slash after master is already missing here:

Buffer.from("2f68627a2f766f636162732d6564752f68656164732f6d6173746572773369642e6f72672f636c6173732f6573632f6e3036", "hex").toString()
'/hbz/vocabs-edu/heads/masterw3id.org/class/esc/n06'

Also, the additional slash is already present in the hex string. The .jsonas document containing that string is generated here: https://github.com/hbz/skohub-vocabs/blob/master/gatsby-node.js#L113

@dr0i
Copy link
Member

dr0i commented May 19, 2020

Tried many things:

Lost, atm.

@dr0i
Copy link
Member

dr0i commented May 22, 2020

Issue is fixed. @raphlap give it another try!

@dr0i
Copy link
Member

dr0i commented May 22, 2020

I reopen this issue because all other vocabs must we build again to be fixed. See a list at skohub-io/skohub.io#10 .

@dr0i dr0i reopened this May 22, 2020
@dr0i dr0i assigned acka47 and unassigned dr0i May 22, 2020
dr0i added a commit to dini-ag-kim/vocabs-edu that referenced this issue May 22, 2020
@acka47
Copy link
Member Author

acka47 commented May 25, 2020

Closing

@acka47 acka47 closed this as completed May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants