[C2S] Internal Server Error when attempting to create a note
Environment
- Installation type: From Source
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.4.2
- Elixir version (
elixir -v
for from source installations, N/A for OTP): Elixir 1.13.0 (compiled with Erlang/OTP 24) - Operating system: Debian 10 Buster
- PostgreSQL version: psql (PostgreSQL) 11.14 (Debian 11.14-0+deb10u1)
Bug description
I'm playing around with the C2S API to see what it can do. While I can read streams just fine, it seems like there's a problem with posting.
Here's a simple test body I tried to send using Postman:
{
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Create",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"https://social.deadsuperhero.com/users/sean/followers"
],
"actor": "https://social.deadsuperhero.com/users/sean",
"object": {
"attributedTo": "https://social.deadsuperhero.com/users/sean",
"type": "Note",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"https://social.deadsuperhero.com/users/sean/followers"
],
"content": "This status was created with ActivityPub C2S in Pleroma!"
}
}
I did a POST action to my outbox here: https://social.deadsuperhero.com/users/sean/outbox/
I seem to be getting similar problems with posting through AndStatus:
Error output:
E; Post "If you can read this, the post went…": E; Post , foreground "If you can read this, the post went…",
Created 46 seconds ago, executed: 1, last: 45 seconds ago, retriesLeft: 9, error: Hard Post "If you can read this,
the post went…", Status code: INTERNAL_SERVER_ERROR; hard; Error='?'; ; statusCode:INTERNAL_SERVER_ERROR (500);
url:'https://social.deadsuperhero.com/users/sean/outbox'; response:'{"errors":{"detail":"Internal server…'
Requested: uri: 'https://social.deadsuperhero.com/users/sean/outbox', verb: POST, params:
{"@context":"https://www.w3.org/ns/activitystreams","type":"Create","to":
["https://www.w3.org/ns/activitystreams#Public","https://social.deadsuperhero.com/users/sean/followers"],"actor":"https://social.deadsuperhero.com/users/sean","object":100: {"attributedTo":"https://social.deadsuperhero.com/users/sean","type":"Note","to":
["https://www.w3.org/ns/activitystreams#Public","https://social.deadsuperhero.com/users/sean/followers"],"content":
"If you can read this, the post went through!"}}, legacy HTTP, authenticate , CommandData: {command: update-status,
id: 1647026506624, foreground, account: sean@social.deadsuperhero.com/ActivityPub "If you can read this, the post
went…", itemId: 4088, created:just now, CommandResult: {error: Hard}}
Edited by Sean Tilley