# SearchController search error "Postgrex expected a binary, got #Pleroma.User\<..."

**URL:** <https://meta.akkoma.dev/t/searchcontroller-search-error-postgrex-expected-a-binary-got-pleroma-user/962>\
**Category:** Support\
**Created:** [12 October 2026 21:15 UTC](https://meta.akkoma.dev/t/searchcontroller-search-error-postgrex-expected-a-binary-got-pleroma-user/962 "2026-10-12T21:15:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chainofflowers](https://meta.akkoma.dev/letter_avatar_proxy/v4/letter/c/b38774/32.png) [@chainofflowers](https://meta.akkoma.dev/u/chainofflowers)\
**Post date:** [12 October 2026 21:15 UTC](https://meta.akkoma.dev/t/searchcontroller-search-error-postgrex-expected-a-binary-got-pleroma-user/962/1 "2026-10-12T21:15:34Z")

</div>

Hi! I’m using v3.20.1 on meilisearch. I cannot use the search function anymore.

Indexing posts seems to work, but searching doesn’t. Whenever I search for anything, I get no results for “posts” and the server shows this:

```auto
Elixir.Pleroma.Web.MastodonAPI.SearchController search error: %DBConnection.EncodeError{message: "Postgrex expected a binary, got #Pleroma.User< [...]

```

The `[…]` is the JSON content of my user info.

Any help? 🙂

---

<div class="post-metadata">

**Author:** ![chainofflowers](https://meta.akkoma.dev/letter_avatar_proxy/v4/letter/c/b38774/32.png) [@chainofflowers](https://meta.akkoma.dev/u/chainofflowers)\
**Post date:** [15 October 2026 13:07 UTC](https://meta.akkoma.dev/t/searchcontroller-search-error-postgrex-expected-a-binary-got-pleroma-user/962/3 "2026-10-15T13:07:23Z")

</div>

UPDATE: it’s the same with the latest develop \*\*build.  
\*\*  
@FloatingGhost : does it depend on a mismatched dep version?

---

<div class="post-metadata">

**Author:** ![FloatingGhost](https://meta.akkoma.dev/letter_avatar_proxy/v4/letter/f/d07c76/32.png) [@FloatingGhost](https://meta.akkoma.dev/u/FloatingGhost)\
**Post date:** [25 October 2026 12:02 UTC](https://meta.akkoma.dev/t/searchcontroller-search-error-postgrex-expected-a-binary-got-pleroma-user/962/4 "2026-10-25T12:02:49Z")

</div>

oh it’s possible that either meili updated their API again or the search changes broke soemthing  
will look into it
