xunzi
12 August 2024 06:51
1
Hi all, I can not follow flipboard accounts, e.g. the culture desk. I am on the latest OTP release running on Debian 12/arm64. I am already following other flipboard accounts but I can not pinpoint since when the error started. Anything else I can contribute to help with the debugging?
I do have logs from the request but I can not post them here because they contain more than two links and I am a new forum user.
xunzi
12 August 2024 07:24
2
Thank you for the quick status update. Here are the logs:
Aug 12 06:37:06 fedi pleroma[459559]: 06:37:06.022 request_id=F-rnwYQSmo8AX0wAHAyD [error] Internal server error: %WithClauseError{term: {:ok, %{“@context ” => [“ActivityStreams 2.0 Terms ”, “https://w3id.org/security/v1 ”, %{“Hashtag” => “as:Hashtag”, “discoverable” => “toot:discoverable”, “indexable” => “toot:indexable”, “toot” => “http://joinmastodon.org/ns# ”}], “OrderedItems” => , “id” => “The Culture Desk (@theculturedesk) on Flipboard ”, “partOf” => “https://flipboard.com/users/theculturedesk/following ”, “type” => “OrderedCollection”}}}
Aug 12 06:37:06 fedi pleroma[459559]: 06:37:06.023 [error] #PID<0.2428495.0> running Pleroma.Web.Endpoint (connection #PID<0.2428482.0>, stream id 1) terminated
Aug 12 06:37:06 fedi pleroma[459559]: Server: fedi.konsolenknecht.de:80 (http)
Aug 12 06:37:06 fedi pleroma[459559]: Request: POST /api/v1/accounts/AevHVdDdLgtOypVOcq/follow
Aug 12 06:37:06 fedi pleroma[459559]: ** (exit) an exception was raised:
Aug 12 06:37:06 fedi pleroma[459559]: ** (WithClauseError) no with clause matching: {:ok, %{“@context ” => [“ActivityStreams 2.0 Terms ”, “https://w3id.org/security/v1 ”, %{“Hashtag” => “as:Hashtag”, “discoverable” => “toot:discoverable”, “indexable” => “toot:indexable”, “toot” => “http://joinmastodon.org/ns# ”}], “OrderedItems” => , “id” => “The Culture Desk (@theculturedesk) on Flipboard ”, “partOf” => “The Culture Desk (@theculturedesk) on Flipboard ”, “type” => “OrderedCollection”}}
Aug 12 06:37:06 fedi pleroma[459559]: (pleroma 3.13.2-0-g050bc74) lib/pleroma/web/activity_pub/activity_pub.ex:1704: Pleroma.Web.ActivityPub.ActivityPub.collection_private/1
Aug 12 06:37:06 fedi pleroma[459559]: (pleroma 3.13.2-0-g050bc74) lib/pleroma/web/activity_pub/activity_pub.ex:1648: Pleroma.Web.ActivityPub.ActivityPub.fetch_follow_information_for_user/1
Aug 12 06:37:06 fedi pleroma[459559]: (pleroma 3.13.2-0-g050bc74) lib/pleroma/user.ex:1410: Pleroma.User.fetch_follow_information/1
Aug 12 06:37:06 fedi pleroma[459559]: (pleroma 3.13.2-0-g050bc74) lib/pleroma/user.ex:1399: Pleroma.User.maybe_fetch_follow_information/1
Aug 12 06:37:06 fedi pleroma[459559]: (pleroma 3.13.2-0-g050bc74) lib/pleroma/user.ex:1438: Pleroma.User.update_follower_count/1
Aug 12 06:37:06 fedi pleroma[459559]: (pleroma 3.13.2-0-g050bc74) lib/pleroma/following_relationship.ex:103: Pleroma.FollowingRelationship.after_update/3
Aug 12 06:37:06 fedi pleroma[459559]: (pleroma 3.13.2-0-g050bc74) lib/pleroma/web/activity_pub/side_effects.ex:111: Pleroma.Web.ActivityPub.SideEffects.handle/2
Aug 12 06:37:06 fedi pleroma[459559]: (pleroma 3.13.2-0-g050bc74) lib/pleroma/web/activity_pub/pipeline.ex:50: Pleroma.Web.ActivityPub.Pipeline.do_common_pipeline/2
Flipboard is mistakenly labelling collection pages as a collection themselves; please report this issue to Flipboard
# Fetching the collection
$ curl_ap https://flipboard.com/users/theculturedesk/following | jq
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"Hashtag": "as:Hashtag",
"toot": "http://joinmastodon.org/ns#",
"discoverable": "toot:discoverable",
"indexable": "toot:indexable"
}
],
"type": "OrderedCollection",
"id": "https://flipboard.com/users/theculturedesk/following",
"totalItems": 35,
"first": "https://flipboard.com/users/theculturedesk/following?cursor=0:10"
}
# Fetching the first page
$ curl_ap https://flipboard.com/users/theculturedesk/following?cursor=0:10 | jq
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"Hashtag": "as:Hashtag",
"toot": "http://joinmastodon.org/ns#",
"discoverable": "toot:discoverable",
"indexable": "toot:indexable"
}
],
"type": "OrderedCollection",
"id": "https://flipboard.com/users/theculturedesk/following?cursor=0:10",
"OrderedItems": [],
"partOf": "https://flipboard.com/users/theculturedesk/following"
}
Note how the page uses the type OrderedCollection
instead of the expected OrderedCollectionPage
now, it would probably good for Akkoma to be more forgiving here and not reject the entire account or the account following action if a collection is broken, but still the root issues stems from flipboard
xunzi
12 August 2024 16:13
4
Got it, I’ll try to address this to flipboard, thanks for checking and for the awesome software and all that you do!