Can't remote follow Owncast instance
Environment
- Installation type (OTP or From Source): Source
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.4.52-554-g3193f18c-develop
- Elixir version (
elixir -v
for from source installations, N/A for OTP): 1.13.2 (compiled with Erlang/OTP 24) - Operating system: Arch Linux
- PostgreSQL version (
psql -V
): 14.3
Bug description
I am unable to remote follow my Owncast instance at https://live.uknow.moe. After clicking the Follow button on the Owncast instance & inputting the instance username@server, I receive a HTTP 500 error
Jul 19 14:43:55 Wides-PL pleroma[1169]: request_id=FwNPQqk0iKdsrnoAAcLx [error] Internal server error: %FunctionClauseError{args: nil, arity: 1, clauses: nil, function: :"-object_to_user_data/1-fun-1-", kind: nil, module: Pleroma.Web.ActivityPub.ActivityPub}
Jul 19 14:43:55 Wides-PL pleroma[1169]: [error] #PID<0.4298.1> running Pleroma.Web.Endpoint (connection #PID<0.4297.1>, stream id 1) terminated
Server: hidamari.apartments:80 (http)
Request: GET /ostatus_subscribe?acct=https://stream.uknow.moe/federation/user/widestream
** (exit) an exception was raised:
** (Protocol.UndefinedError) protocol Phoenix.HTML.Safe not implemented for %{errors: %{detail: "Internal server error"}} of type Map. This protocol is implemented for the following type(s): Atom, BitString, Date, DateTime, Decimal, Float, Integer, List, NaiveDateTime, Phoenix.HTML.Form, Phoenix.LiveComponent.CID, Phoenix.LiveView.Component, Phoenix.LiveView.Comprehension, Phoenix.LiveView.JS, Phoenix.LiveView.Rendered, Time, Tuple
(phoenix_html 3.1.0) lib/phoenix_html/safe.ex:1: Phoenix.HTML.Safe.impl_for!/1
(phoenix_html 3.1.0) lib/phoenix_html/safe.ex:15: Phoenix.HTML.Safe.to_iodata/1
(phoenix 1.5.9) lib/phoenix/controller.ex:776: Phoenix.Controller.render_and_send/4
(phoenix 1.5.9) lib/phoenix/endpoint/render_errors.ex:78: Phoenix.Endpoint.RenderErrors.instrument_render_and_send/5
(phoenix 1.5.9) lib/phoenix/endpoint/render_errors.ex:64: Phoenix.Endpoint.RenderErrors.__catch__/5
(phoenix 1.5.9) lib/phoenix/endpoint/cowboy2_handler.ex:65: Phoenix.Endpoint.Cowboy2Handler.init/4
(cowboy 2.9.0) /opt/pleroma/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.9.0) /opt/pleroma/deps/cowboy/src/cowboy_stream_h.erl:306: :cowboy_stream_h.execute/3
I can also reproduce this with my shitposter.club account. Mastodon instances seem to handle the remote follow fine, or at the very least don't 500
I didn't treat this as an Owncast issue because I saw that they ran their own federation tests earlier this year: https://github.com/owncast/owncast/issues/1211#issuecomment-1012584506
edit> the Owncast instance is now hosted at https://live.uknow.moe. It's shorter :)
Edited by lewdthewides