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

Interoperability with non-mastodon ActivityPub services #8625

Closed
vitalyster opened this Issue Sep 5, 2018 · 10 comments

Comments

Projects
None yet
3 participants
@vitalyster

vitalyster commented Sep 5, 2018

I'm trying to federate with mastodon from scratch, querying ActivityPub actors, their outboxes/followers/etc. and can not get actual response - after the first request to some endpoint it is cached indefinitely without(?) any possibility to reset cache.
I'm trying to search users from mastodon.social instance, using web interface as well as different mobile clients and see the same profile info and outbox for federated users that I requested a day ago! While actual info is updated recently.
What did I miss? Is there a way to tell server need to reset cache and request actual info?


  • I searched or browsed the repo’s other issues to ensure this is not a duplicate.
  • This bug happens on a tagged release and not on master (If you're a user, don't worry about this).
@Gargron

This comment has been minimized.

Show comment
Hide comment
@Gargron

Gargron Sep 19, 2018

Member

The cache is only 1 day when searching for username@domain. When pasting URL of actor into search bar, no caching. What is the URL of your actor?

Member

Gargron commented Sep 19, 2018

The cache is only 1 day when searching for username@domain. When pasting URL of actor into search bar, no caching. What is the URL of your actor?

@vitalyster

This comment has been minimized.

Show comment
Hide comment
@vitalyster

vitalyster Sep 19, 2018

Hello, thanks for your response, actually I have a lot more interoperability questions :)
Cache for my account search was reset in 2 or 3 days, maybe it did not reset in case of errors? Now it more accurate but a bit lags in followers count, so it cached again.
And search for my Actor URL returns 0 results.
Please, let me know what exact fields are missing in my ActivityStreams/ActivityPub implementation.

vitalyster commented Sep 19, 2018

Hello, thanks for your response, actually I have a lot more interoperability questions :)
Cache for my account search was reset in 2 or 3 days, maybe it did not reset in case of errors? Now it more accurate but a bit lags in followers count, so it cached again.
And search for my Actor URL returns 0 results.
Please, let me know what exact fields are missing in my ActivityStreams/ActivityPub implementation.

@Gargron

This comment has been minimized.

Show comment
Hide comment
@Gargron

Gargron Sep 19, 2018

Member

https://api.juick.com/.well-known/webfinger?resource=acct:@api.juick.com returns 401.

Member

Gargron commented Sep 19, 2018

https://api.juick.com/.well-known/webfinger?resource=acct:@api.juick.com returns 401.

@Gargron

This comment has been minimized.

Show comment
Hide comment
@Gargron

Gargron Sep 19, 2018

Member

Missing preferredUsername (username). name is "display name"

Member

Gargron commented Sep 19, 2018

Missing preferredUsername (username). name is "display name"

@vitalyster

This comment has been minimized.

Show comment
Hide comment
@vitalyster

vitalyster Sep 19, 2018

@Gargron WebFinger is on root domain and usernames are too, api is used only for feeds

vitalyster commented Sep 19, 2018

@Gargron WebFinger is on root domain and usernames are too, api is used only for feeds

@vitalyster

This comment has been minimized.

Show comment
Hide comment
@vitalyster

vitalyster Sep 19, 2018

Understand now - when pasting url in search it tries to discover on api domain.
But still does not understand what is missing in OrderedCollectionPages in blogs and followers

vitalyster commented Sep 19, 2018

Understand now - when pasting url in search it tries to discover on api domain.
But still does not understand what is missing in OrderedCollectionPages in blogs and followers

@vitalyster vitalyster changed the title from Responses from ActivityPub federated (non-mastodon) servers are cached too aggressively to Interoperability with non-mastodon services Sep 19, 2018

@vitalyster vitalyster changed the title from Interoperability with non-mastodon services to Interoperability with non-mastodon ActivityPub services Sep 19, 2018

@vitalyster

This comment has been minimized.

Show comment
Hide comment
@vitalyster

vitalyster Sep 19, 2018

Now Actor URL without subdomain and mastodon still doesn't show outbox and followers/following (but show counters)

vitalyster commented Sep 19, 2018

Now Actor URL without subdomain and mastodon still doesn't show outbox and followers/following (but show counters)

@Gargron

This comment has been minimized.

Show comment
Hide comment
@Gargron

Gargron Sep 19, 2018

Member

@vitalyster Mastodon does not download past posts, or followers/following. Only the counts. Content is stored after subscription only.

Member

Gargron commented Sep 19, 2018

@vitalyster Mastodon does not download past posts, or followers/following. Only the counts. Content is stored after subscription only.

@nightpool nightpool added the question label Sep 21, 2018

@vitalyster

This comment has been minimized.

Show comment
Hide comment
@vitalyster

vitalyster Sep 27, 2018

@Gargron thanks, now I'm trying to post and/or follow using your tutorial - I'm using the same create-hello-world.json and delivery.rb script only change attributedTo actor to my actor and addressing to to my mastodon.social actor (it should be private message, right?) and put my actor id to keyId header in delivery.rb script - the response is 500, We're sorry, but something went wrong on our end

The same error is for Follow activity. Something missing again?

vitalyster commented Sep 27, 2018

@Gargron thanks, now I'm trying to post and/or follow using your tutorial - I'm using the same create-hello-world.json and delivery.rb script only change attributedTo actor to my actor and addressing to to my mastodon.social actor (it should be private message, right?) and put my actor id to keyId header in delivery.rb script - the response is 500, We're sorry, but something went wrong on our end

The same error is for Follow activity. Something missing again?

@vitalyster

This comment has been minimized.

Show comment
Hide comment
@vitalyster

vitalyster Oct 1, 2018

Finally, I'm able to run mastodon myself in development mode and see detailed errors

vitalyster commented Oct 1, 2018

Finally, I'm able to run mastodon myself in development mode and see detailed errors

@vitalyster vitalyster closed this Oct 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment