# Help debugging why mastodon isn't finding an actor

**URL:** <https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056>\
**Category:** Testing\
**Created:** [February 17, 2025, 8:19pm UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056 "2025-02-17T20:19:14Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@simon](https://socialhub.activitypub.rocks/u/simon)\
**Post date:** [February 17, 2025, 8:19pm UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/1 "2025-02-17T20:19:15Z")

</div>

Hi!

I’m very new to this so I may be missing something obvious, or a place to go find that obvious something.

I’ve searched through some old tickets and did find some helpful things, but nothing that gives me insight into what might be wrong.

Here’s what our webfinger looks like: [WebFinger](https://webfinger.net/lookup/?resource=team%40mirlo.space)

And this seems to indicate that things are fine except that we don’t accept POST requests at the moment [https://verify.funfedi.dev/?actor\_uri=https%3A%2F%2Fmirlo.space%2Fv1%2Fartists%2Fteam](https://verify.funfedi.dev/?actor_uri=https%3A%2F%2Fmirlo.space%2Fv1%2Fartists%2Fteam)

The main thing I suspect might be causing an issue is that I’m not using `@` before my user name, but I also understand that’s not required. Right now my webfinger can receive both and returns the id without it.

Also we’re currently running our API off of both the root domain `mirlo.space` and the api `api.mirlo.space`, and I’m wondering if that’s causing some issues? That’s just us being mid-transition here though.

Tbh, I’m not even sure how to check for the account on mastodon. I’ve just been going to this:

`https://musician.social/@team@mirlo.space`

NodeBB doesn’t seem to work either:

`https://community.nodebb.org/user/team@mirlo.space`

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [February 17, 2025, 9:07pm UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/2 "2025-02-17T21:07:52Z")

</div>

The server doesn’t return actor document when [required Accept header](https://www.w3.org/TR/activitypub/#retrieving-objects) is set:

```auto
curl -H 'Accept: application/ld+json; profile="https://www.w3.org/ns/activitystreams"' https://mirlo.space/v1/artists/team

```

> [@simon](#):
>
> I’ve just been going to this:
> 
> `https://musician.social/@team@mirlo.space`

Have you tried searching for webfinger address or actor ID (via search box)?

---

<div class="post-metadata">

**Author:** ![simon](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@simon](https://socialhub.activitypub.rocks/u/simon)\
**Post date:** [February 17, 2025, 9:42pm UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/3 "2025-02-17T21:42:34Z")

</div>

Thanks for the fast response!!

> [@silverpill](#):
>
> `curl -H 'Accept: application/ld+json; profile="https://www.w3.org/ns/activitystreams"' https://mirlo.space/v1/artists/team`

I was under the impression it could be either `Accept: application/activity+json` or that `ld+json` json one? Eg, the [mastodon webfinger](https://docs.joinmastodon.org/spec/webfinger/) doc says:

> Thus, we cannot guess the actor `id` given only the username and domain. However, if `social.example` supports WebFinger, then we can get this `id` by requesting `https://social.example/.well-known/webfinger?resource=acct:username@social.example`and parsing the response for a link with the `application/ld+json; profile="https://www.w3.org/ns/activitystreams"` or `application/activity+json` type. This link should also have the link relation `rel="self"`.

However! Adding the other one isn’t an issue. I just did so it looks like that’s now returning the Actor as we define it.

And that **does** look like it now makes it [appear on NodeBB](https://community.nodebb.org/user/team@mirlo.space) (exciting!). However, it’s still not working on Mastodon.

> Have you tried searching for webfinger address or actor ID (via search box)?

I’m not sure what this means 😅 If I plug the URL for the webfinger (`https://mirlo.space/.well-known/webfinger?resource=acct:team@mirlo.space`) into the search box in Mastodon, I get this:

 ![image](https://socialhub.activitypub.rocks/uploads/default/original/2X/3/3f17e803f59ad0f13bff8bde47aa69b757fda8c2.png)

If I plug the id `https://mirlo.space/v1/artists/team` into that same search box I also get a not found page.

I’m wondering if there’s some form of caching happening?

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [February 17, 2025, 10:23pm UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/4 "2025-02-17T22:23:36Z")

</div>

> [@simon](#):
>
> I was under the impression it could be either `Accept: application/activity+json` or that `ld+json` json one?

Yes, `Accept` can be one of those, but server should return actor document in both cases.

Another potential issue:

Server’s response has `Content-Type: application/json`, but it should be `application/ld+json; profile="https://www.w3.org/ns/activitystreams"` (or `application/activity+json`).

> [@simon](#):
>
> If I plug the id `https://mirlo.space/v1/artists/team` into that same search box I also get a not found page.
> 
> I’m wondering if there’s some form of caching happening?

Yes, Mastodon might cache responses. I am not very familiar with it

---

<div class="post-metadata">

**Author:** ![stevebate](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/stevebate/32/2763_2.png) [@stevebate](https://socialhub.activitypub.rocks/u/stevebate)\
**Post date:** [February 18, 2025, 7:15am UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/5 "2025-02-18T07:15:31Z")

</div>

> [@silverpill](#):
>
> > [@simon](#):
> >
> > If I plug the id `https://mirlo.space/v1/artists/team` into that same search box I also get a not found page.
> > 
> > I’m wondering if there’s some form of caching happening?
> 
> Yes, Mastodon might cache responses. I am not very familiar with it

Mastodon definitely caches data like that. If you control the instance and if it makes sense for the mirlo.space domain, you can use the Mastodon CLI `tootctl domain purge mirlo.space` command to remove all accounts and posts for the domain. This will also clear the caches and allow the actor to be re-searched.

---

<div class="post-metadata">

**Author:** ![simon](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@simon](https://socialhub.activitypub.rocks/u/simon)\
**Post date:** [February 18, 2025, 3:15pm UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/6 "2025-02-18T15:15:43Z")

</div>

Might also be that Mastodon requires the inbox to exist:

> Note that you _will_ need to implement the `inbox` endpoint to allow users to follow you, and to be able to notify them of new posts (since you’ll need to know _who_ to send notifications for new posts to). This is probably what’s stopping your profile from showing up at all—Mastodon requires the `inbox` endpoint to exist so that it’s possible to interact with the user (follow them, like their posts, reply to their posts, etc)

> **[Not able to see ActivityPub outbox on Mastodon · mastodon/mastodon ·...](https://github.com/mastodon/mastodon/discussions/17265#discussioncomment-1935984)**
>
> I'm trying to get Mastodon to show the posts from my blog, my-example.com (pseudonym domain for privacy purposes). I'm exposing the blog entries using the ActivityPub protocol via an outbox, using ...

Though if this is it it might require more than just implementing the POST endpoint. That doesn’t seem to be enough.

---

<div class="post-metadata">

**Author:** ![andypiper](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/andypiper/32/3171_2.png) [@andypiper](https://socialhub.activitypub.rocks/u/andypiper)\
**Post date:** [February 18, 2025, 5:48pm UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/7 "2025-02-18T17:48:03Z")

</div>

Using the fedify CLI, which has a nice actor lookup and node querying feature:

```shell
$ fedify lookup team@mirlo.space
✔ Fetched object: team@mirlo.space.
Object {}
✔ Successfully fetched the object.

```

On the other hand, output from Wordpress:

> **lookup**
>
> ```shell
> $ fedify lookup andypiper@andypiper.co.uk
> ✔ Fetched object: andypiper@andypiper.co.uk.
> Person {
> id: URL "https://andypiper.co.uk/author/andypiper/",
> attachments: [
> PropertyValue {
> name: "Blog",
> value: '<p><a rel="me noopener" title="https://andypiper.co.uk/" target="_blank" href="https://andypiper.co.uk/">andypiper.co.uk</a></p>'
> },
> Link {
> href: URL "https://andypiper.co.uk/",
> rels: ["me", "noopener"],
> name: "Blog"
> },
> PropertyValue {
> name: "Profile",
> value: '<p><a rel="me noopener" title="https://andypiper.co.uk/author/andypiper/" target="_blank" href="https://andypiper.co.uk/author/andypiper/">andypiper.co.uk</a></p>'
> },
> Link {
> href: URL "https://andypiper.co.uk/author/andypiper/",
> rels: ["me", "noopener"],
> name: "Profile"
> },
> PropertyValue {
> name: "Homepage",
> value: '<p><a rel="me noopener" title="https://andypiper.omg.lol" target="_blank" href="https://andypiper.omg.lol">andypiper.omg.lol</a></p>'
> },
> Link {
> href: URL "https://andypiper.omg.lol/",
> rels: ["me", "noopener"],
> name: "Homepage"
> }
> ],
> name: "Andy Piper",
> icon: Image {
> url: URL "https://secure.gravatar.com/avatar/d33e6fe38426aba6431cd4e9c3609a0c6ba480813a7e2d5987170bf015d5b8c7?s=120&#038;d=identicon&#038;r=g"
> },
> published: 2006-03-25T15:27:57Z,
> summary: "<p>Fediverse, Open Source, Pen Plotters, Community</p>\n",
> url: URL "https://andypiper.co.uk/author/andypiper/",
> mediaType: "text/html",
> preferredUsername: "andypiper",
> publicKey: CryptographicKey {
> id: URL "https://andypiper.co.uk/author/andypiper/#main-key",
> owner: URL "https://andypiper.co.uk/author/andypiper/",
> publicKey: CryptoKey {
> type: "public",
> extractable: true,
> algorithm: {
> name: "RSASSA-PKCS1-v1_5",
> modulusLength: 2048,
> publicExponent: Uint8Array(3) [1, 0, 1],
> hash: { name: "SHA-256" }
> },
> usages: ["verify"]
> }
> },
> manuallyApprovesFollowers: false,
> inbox: URL "https://andypiper.co.uk/wp-json/activitypub/1.0/actors/165913/inbox",
> outbox: URL "https://andypiper.co.uk/wp-json/activitypub/1.0/actors/165913/outbox",
> following: URL "https://andypiper.co.uk/wp-json/activitypub/1.0/actors/165913/following",
> followers: URL "https://andypiper.co.uk/wp-json/activitypub/1.0/actors/165913/followers",
> featured: URL "https://andypiper.co.uk/wp-json/activitypub/1.0/actors/165913/collections/featured",
> discoverable: true,
> indexable: true
> }
> ✔ Successfully fetched the object.
> 
> ```

… and Mastodon:

> **lookup**
>
> ```shell
> $ fedify lookup andypiper@me.dm
> ✔ Fetched object: andypiper@me.dm.
> Person {
> id: URL "https://me.dm/users/andypiper",
> attachments: [
> PropertyValue {
> name: "Medium",
> value: '<a href="https://medium.com/@andypiper" target="_blank" rel="nofollow noopener noreferrer me" translate="no"><span class="invisible">https://</span><span class="">medium.com/@andypiper</span><span class="invisible"></span></a>'
> }
> ],
> name: "Andy Piper",
> icon: Image {
> url: URL "https://media.me.dm/accounts/avatars/109/978/687/461/515/565/original/af4afdd0454e190b.jpeg",
> mediaType: "image/jpeg"
> },
> published: 2023-03-06T00:00:00Z,
> summary: "<p>Tinkerer and Dreamer. Interests: Open Source | Fediverse | Community | LEGO</p>",
> url: URL "https://me.dm/@andypiper",
> preferredUsername: "andypiper",
> publicKey: CryptographicKey {
> id: URL "https://me.dm/users/andypiper#main-key",
> owner: URL "https://me.dm/users/andypiper",
> publicKey: CryptoKey {
> type: "public",
> extractable: true,
> algorithm: {
> name: "RSASSA-PKCS1-v1_5",
> modulusLength: 2048,
> publicExponent: Uint8Array(3) [1, 0, 1],
> hash: { name: "SHA-256" }
> },
> usages: ["verify"]
> }
> },
> manuallyApprovesFollowers: false,
> inbox: URL "https://me.dm/users/andypiper/inbox",
> outbox: URL "https://me.dm/users/andypiper/outbox",
> following: URL "https://me.dm/users/andypiper/following",
> followers: URL "https://me.dm/users/andypiper/followers",
> featured: URL "https://me.dm/users/andypiper/collections/featured",
> featuredTags: URL "https://me.dm/users/andypiper/collections/tags",
> endpoints: Endpoints { sharedInbox: URL "https://me.dm/inbox" },
> discoverable: false,
> memorial: false,
> indexable: false
> }
> ✔ Successfully fetched the object.
> 
> ```

… and Lemmy:

> **lookup**
>
> ```shell
> $ fedify lookup andypiper@lemmy.world
> ✔ Fetched object: andypiper@lemmy.world.
> Person {
> id: URL "https://lemmy.world/u/andypiper",
> name: "andypiper",
> icon: Image {
> url: URL "https://lemmy.world/pictrs/image/4f9dfd02-6b16-41aa-a688-f0855279a9bd.jpeg"
> },
> image: Image {
> url: URL "https://lemmy.world/pictrs/image/f05c13eb-eddf-4184-86a2-38ab1eb744a9.jpeg"
> },
> published: 2023-06-09T11:01:21.388753Z,
> summary: '<p>Mostly <a href="https://macaw.social/@andypiper">@andypiper@macaw.social</a> on the #fediverse - more links <a href="https://andypiper.me">here</a>.</p>\n',
> source: Source {
> content: "Mostly [@andypiper@macaw.social](https://macaw.social/@andypiper) on the #fediverse - more links [here](https://andypiper.me).",
> mediaType: "text/markdown"
> },
> preferredUsername: "andypiper",
> publicKey: CryptographicKey {
> id: URL "https://lemmy.world/u/andypiper#main-key",
> owner: URL "https://lemmy.world/u/andypiper",
> publicKey: CryptoKey {
> type: "public",
> extractable: true,
> algorithm: {
> name: "RSASSA-PKCS1-v1_5",
> modulusLength: 2048,
> publicExponent: Uint8Array(3) [1, 0, 1],
> hash: { name: "SHA-256" }
> },
> usages: ["verify"]
> }
> },
> inbox: URL "https://lemmy.world/u/andypiper/inbox",
> outbox: URL "https://lemmy.world/u/andypiper/outbox",
> endpoints: Endpoints { sharedInbox: URL "https://lemmy.world/inbox" }
> }
> ✔ Successfully fetched the object.
> 
> ```

To me, it looks like the result of fetching `https://mirlo.space/v1/artists/team` (which is what the webfinger result points to) is not just a Person object, but something very verbose?

---

<div class="post-metadata">

**Author:** ![nightpool](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/nightpool/32/36_2.png) [@nightpool](https://socialhub.activitypub.rocks/u/nightpool)\
**Post date:** [February 18, 2025, 8:42pm UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/8 "2025-02-18T20:42:12Z")

</div>

I’m looking at the profile from Mastodon now and it seems to resolve properly (by putting the full Actor ID into the “Open URL with Mastodon” search box):

 ![image](https://socialhub.activitypub.rocks/uploads/default/original/2X/5/5024bc1c66422e89bf62d8e5ec28321b9b98be83.png)

> [@andypiper](#):
>
> Using the fedify CLI, which has a nice actor lookup and node querying feature:
> 
> ```auto
> $ fedify lookup team@mirlo.space
> ✔ Fetched object: team@mirlo.space.
> Object {}
> ✔ Successfully fetched the object.
> 
> ```

Seems like this might be a bug in the Fedify tool, since it seems fine for me with curl:

 ![image](https://socialhub.activitypub.rocks/uploads/default/original/2X/b/b11253283d5f37452e4a37bc58ffeb1e0bb94f8e.jpeg)

It definitely shouldn’t be returning a “Successful” result for an empty object, like the log seems to indicate?

---

<div class="post-metadata">

**Author:** ![simon](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@simon](https://socialhub.activitypub.rocks/u/simon)\
**Post date:** [February 18, 2025, 8:58pm UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/9 "2025-02-18T20:58:24Z")

</div>

Thanks for the tip on `fedify`!

When I added the `--debug` flag it showed me that it wasn’t a straight `Accept: application/activity+json` that was coming through but actually both the `activity+json` and `ld+json` as one string, which my server wasn’t expecting. Once I fixed my search, it started coming through.

cc @nightpool (I think you caught me fixing the problem `fedify` showed me before I was able to post with the update!)

Now onto figuring out the inbox and such!

---

<div class="post-metadata">

**Author:** ![nightpool](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/nightpool/32/36_2.png) [@nightpool](https://socialhub.activitypub.rocks/u/nightpool)\
**Post date:** [February 18, 2025, 11:57pm UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/10 "2025-02-18T23:57:34Z")

</div>

Ah, yes, that’s a good beginner tip:

Please, please, please do not hand roll your own Accept header parsing. It’s a very complicated header field with many nuances. Use a library. There are many libraries out there to handle parsing this header.

---

<div class="post-metadata">

**Author:** ![andypiper](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/andypiper/32/3171_2.png) [@andypiper](https://socialhub.activitypub.rocks/u/andypiper)\
**Post date:** [February 21, 2025, 11:01am UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/11 "2025-02-21T11:01:57Z")

</div>

Just followed `@team@mirlo.space` from my account on Mastodon (I’ll try some other platforms too), so that looks like solid progress! Glad to see things moving along, I know the indie music community are pretty excited to see Mirlo joining the Fediverse 🙂

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [February 21, 2025, 11:25am UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/12 "2025-02-21T11:25:46Z")

</div>

I can load the actor document, but `Follow` doesn’t work for me. The server responds with 400 `{"error":"Only accepts ActivityPub headers"}`  
The `Content-Type` header value is the one required by ActivityPub specification.

---

<div class="post-metadata">

**Author:** ![simon](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@simon](https://socialhub.activitypub.rocks/u/simon)\
**Post date:** [February 21, 2025, 11:27am UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/13 "2025-02-21T11:27:25Z")

</div>

@andypiper I took a little step back from this because I had to focus on some other things, so I would be very very surprised if that follow did anything on our end 😬 (confirmed you haven’t been stored in our db).

We do have [this account](https://musician.social/@mirlo) though from which we do regularly post!

---

<div class="post-metadata">

**Author:** ![andreas](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@andreas](https://socialhub.activitypub.rocks/u/andreas)\
**Post date:** [June 20, 2025, 8:11am UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/14 "2025-06-20T08:11:17Z")

</div>

Hi! I came to socialhub to ask the same question and found this thread, so I’ll ask here. I’m trying to implement Activitypub more for the fun of implementing, and am currently stuck with the actor not being visible in Mastodon, just like the original poster. Over the past days I spent quite a bit of time debugging this, and obviously failing to find the real issue.

When looking for

```auto
andreas@pramari.de

```

from my Mastodon Account, my http-server will see the following:

```auto
2025-06-20 08:02:03 default[20250619t093148] 127.0.0.1:35619 - - [20/Jun/2025:08:02:03] "GET /.well-known/webfinger?resource=acct:andreas@pramari.de" 200 405
2025-06-20 08:02:04 default[20250619t093148] 127.0.0.1:35619 - - [20/Jun/2025:08:02:04] "GET /@andreas" 200 1294

```

Whereas I interpret the 200 OK as a positive sign, the Actor won’t show in the search results.

Throughout debugging, I made sure the respose happenes with the correct “Content-Type”. Trying the same from the command-line gives me the following:

```auto
curl -I -H 'Accept: application/ld+json; profile="https://www.w3.org/ns/activitystreams"' https://pramari.de/@andreas

HTTP/2 200 
content-type: application/ld+json
vary: Accept, origin, Cookie
allow: GET, HEAD, OPTIONS
x-content-type-options: nosniff
referrer-policy: same-origin
cross-origin-opener-policy: same-origin
x-frame-options: DENY
x-cloud-trace-context: 48af64b8a344225bf2fd9c20a941954c;o=1
content-length: 1294
date: Fri, 20 Jun 2025 07:59:03 GMT
server: Google Frontend

{"id":"https://pramari.de/@andreas","type":"Person","preferredUsername":"andreas","name":"andreas","summary":"planet earth.\r\n\r\nhttps://neumeier.org","inbox":"https://pramari.de/@andreas/inbox","outbox":"https://pramari.de/accounts/andreas/outbox","followers":"https://pramari.de/accounts/andreas/followers","following":"https://pramari.de/accounts/andreas/following","liked":"https://pramari.de/accounts/andreas/liked","publicKey":{"id":"https://pramari.de/@andreas#main-key","owner":"https://pramari.de/@andreas","publicKeyPem":"-----BEGIN PUBLIC KEY-----\r\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnqWjWxU5kKR1rpBjHXwl\r\nRKzfkrjlukb1a4sCSnoIM9UDi8SoXQ7k41A+PkM2iQBW9Xk15aVRSLYAn/EJsOBT\r\n3zVOe0QceeGFf0pxfxFY0mAoGMzfly/DUYNqvGciyyeE1POVizsCduU0HWIX7+ga\r\npBrzHQEp0drZtH6VXoa4Y+Wi8YHmAX+k/r8LBLIX7Ryfm9dD1UfvbqckWgaby5Eu\r\nSic4rpjGr24qE+hzBSi5vVGIc7Mb4bztIsyHHjxl7sbkXldk9Uo/b3XlJ9iTO6ZA\r\nCR+YPr+Zk9R4DyITS9yRsyb0FWtSO33ZC9fES7YBz+p8rYH83K7+v0gs8Sl7VUwX\r\nhwIDAQAB\r\n-----END PUBLIC KEY-----"},"url":"https://pramari.de/@andreas","published":"2019-06-30T11:43:47+00:00","endpoints":{"endpoints":{"sharedInbox":"https://pramari.de/inbox"}},"manuallyApprovesFollowers":false,"discoverable":true,"@context":["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1"]}

```

Is it that the response is missing a field? Would I get Mastodon to tell me what it wants?

The actor does show in NodeBB however:

```auto
https://community.nodebb.org/user/andreas@pramari.de

```

How can I fix this?

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [June 20, 2025, 7:52pm UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/15 "2025-06-20T19:52:17Z")

</div>

> [@andreas](#):
>
> `content-type: application/ld+json`

Have you tried adding the `profile="..."` part?  
I can resolve your actor but Mastodon might be more strict.

My `Follow` failed, though:

```auto
HTTP error 415: [415] {"detail":"Unsupported media type \"application/ld+json; profile=\"https:// [the rest is truncated]

```

The content type was `application/ld+json; profile="https://www.w3.org/ns/activitystreams"`

---

<div class="post-metadata">

**Author:** ![andreas](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@andreas](https://socialhub.activitypub.rocks/u/andreas)\
**Post date:** [June 20, 2025, 8:26pm UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/16 "2025-06-20T20:26:14Z")

</div>

Yes.

```auto
curl -H 'Accept: application/ld+json; profile="https://www.w3.org/ns/activitystreams"' https://pramari.de/@andreas 

```

produces the same result. I double and tripple checked Accept headers and content types.

Beyond that, not much is implemented, after I suspect a major issue here, that I fail to wrap my head around.

---

<div class="post-metadata">

**Author:** ![andreas](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@andreas](https://socialhub.activitypub.rocks/u/andreas)\
**Post date:** [June 22, 2025, 6:00am UTC](https://socialhub.activitypub.rocks/t/help-debugging-why-mastodon-isnt-finding-an-actor/5056/17 "2025-06-22T06:00:42Z")

</div>

Finally I figured it out. With django-rest-framework renderers, these will care for ‘Accept:’ headers.  
One still has to set:

```auto
        return Response(data, content_type='application/activity+json')

```
