-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Can't process Accept activity after Follow when activity.actor
doesn't exist
#12720
Comments
That's definitely a TypeORM error 🤔 |
The server side log says:
|
So the ID-URI needs to be publicly accessible even for an |
I'll have to dig more as I'm not very familiar with typeorm and the log doesn't say the line number, but the error should be from somewhere here or below: misskey/packages/backend/src/core/activitypub/models/ApPersonService.ts Lines 488 to 496 in 10d4ae1
Since the actor information is already fetched, the function just loads it from the local data, which should include the ID: misskey/packages/backend/src/core/activitypub/models/ApPersonService.ts Lines 417 to 418 in 10d4ae1
Per the above I would say no. Maybe the initial fetch for the actor goes wrong? |
Hmm, that one actually seems more like a general JS error. |
For this part, how did you trigger that endpoint? It's an admin-only endpoint that is hidden by bbef2a9 (🤔 cc @syuilo), are you manually creating the API request? Anyway, I did the manual request and got the stack:
... which points to: misskey/packages/backend/src/core/activitypub/models/ApPersonService.ts Lines 519 to 523 in 10d4ae1
|
|
https://w3c.github.io/activitypub/#actor-objects
So it should be optional. |
With #12727 I get:
Which is: misskey/packages/backend/src/core/activitypub/ApInboxService.ts Lines 207 to 211 in 10d4ae1
Somehow |
I experimented with a shared inbox and then I can at least run "Update remote user information" without issues, but following is still a problem. I use the same URL for the Actor-ID and Actor-URL, could that be an issue for Misskey? This is my other blog with the sharedInbox enabled if you need a test instance: |
I think the following and update-remote thing is technically separate issues, but we'll see... |
That should be okay IMO. Can you check how the data look like for the Accept activity? Does it have |
Here is an {
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
"PropertyValue": "schema:PropertyValue",
"schema": "http://schema.org#",
"pt": "https://joinpeertube.org/ns#",
"toot": "http://joinmastodon.org/ns#",
"webfinger": "https://webfinger.net/#",
"litepub": "http://litepub.social/ns#",
"lemmy": "https://join-lemmy.org/ns#",
"value": "schema:value",
"Hashtag": "as:Hashtag",
"featured": {
"@id": "toot:featured",
"@type": "@id"
},
"featuredTags": {
"@id": "toot:featuredTags",
"@type": "@id"
},
"alsoKnownAs": {
"@id": "as:alsoKnownAs",
"@type": "@id"
},
"moderators": {
"@id": "lemmy:moderators",
"@type": "@id"
},
"postingRestrictedToMods": "lemmy:postingRestrictedToMods",
"discoverable": "toot:discoverable",
"indexable": "toot:indexable",
"sensitive": "as:sensitive",
"resource": "webfinger:resource"
}
],
"id": "https://pfefferle.org/author/pfefferle/#follow/1703174869",
"type": "Accept",
"object": {
"id": "https://misskey.io/follows/9niynkoa4zjm0021",
"type": "Follow"
},
"actor": "https://pfefferle.org/author/pfefferle/",
"to": "https://misskey.io/users/7xgdnovq9y"
} |
oh, it seems to miss the actor in the object... will check why this! |
Technically Misskey should be able to infer the actor from the id |
@saschanaz You saved my day and my christmas holidays!!! I found the issue in the code that strips the actor and the object! I will fix it asap and release a new update! So the follow issue is solved, sorry for keeping you busy and thanks a lot for your help debugging this issue! |
Congrats! 🎉 (Let's keep this issue open to track supporting implementations without those fields) |
Besides of that, should I keep this issue open because of the |
Yup, but ideally we should have two separate issues for each. |
Ok, I will file a separate issue for the |
activity.actor
doesn't exist
💡 Summary
I am the maintainer of the WordPress ActivityPub plugin: https://wordpress.org/plugins/activitypub/
I tried to follow my Blogs User Account and the process stucks "In progress". The Blog receives the Follow Request and also sends the Accept response and Misskey seem to be fine with the Accept:
When I try to refresh the profile I receive the following error:
I already experimented with Misskey some 4 month ago without issues:
The IDs I tried are:
🥰 Expected Behavior
It should be possible to follow a User on a WordPress Blog and to refresh the profile informations.
🤬 Actual Behavior
See summary.
📝 Steps to Reproduce
@[email protected]
💻 Frontend Environment
🛰 Backend Environment (for server admin)
The text was updated successfully, but these errors were encountered: