Static FE: /users/(userid) returns HTTP/500 for some accounts
Environment
- Installation type (OTP or From Source): Source
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.1.0
- Elixir version (
elixir -v
for from source installations, N/A for OTP): - Operating system:
- PostgreSQL version (
psql -V
):
Bug description
If you go to https://nsfw.social/salidete one of my users, you see his normal profile. Generated through JS.
If you go to https://nsfw.social/users/salidate which is supposed to be the StaticFE version, you get an HTTP/500 error.
I'm seeing this for quite a few of my users actually.
This is what gets recorded in syslog:
Aug 29 18:31:35 liewrap01 pleroma: request_id=Fi_Qu2Cr3L-MqgoAE_ER [error] Internal server error: %Floki.ParseError{message: :badmatch}
Aug 29 18:31:35 liewrap01 pleroma: request_id=Fi_Qu2Cr3L-MqgoAE_ER [info] Converted error Floki.ParseError to 500 response
Aug 29 18:31:35 liewrap01 pleroma: [error] #PID<0.7402.9> running Pleroma.Web.Endpoint (connection #PID<0.7397.9>, stream id 1) terminated#012Server: nsfw.social:80 (http)#012Request: GET /users/salidete#012** (exit) an exception was raised:#012 ** (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): Decimal, Date, NaiveDateTime, BitString, Float, Atom, Time, DateTime, List, Integer, Phoenix.HTML.Form, Tuple#012 (phoenix_html 2.14.2) lib/phoenix_html/safe.ex:1: Phoenix.HTML.Safe.impl_for!/1#012 (phoenix_html 2.14.2) lib/phoenix_html/safe.ex:15: Phoenix.HTML.Safe.to_iodata/1#012 (phoenix 1.4.17) lib/phoenix/controller.ex:776: Phoenix.Controller.__put_render__/5#012 (phoenix 1.4.17) lib/phoenix/endpoint/render_errors.ex:77: Phoenix.Endpoint.RenderErrors.instrument_render_and_send/5#012 (phoenix 1.4.17) lib/phoenix/endpoint/render_errors.ex:62: Phoenix.Endpoint.RenderErrors.__catch__/5#012 (phoenix 1.4.17) lib/phoenix/endpoint/cowboy2_handler.ex:42: Phoenix.Endpoint.Cowboy2Handler.init/4#012 (cowboy 2.8.0) /opt/pleroma/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2#012 (cowboy 2.8.0) /opt/pleroma/deps/cowboy/src/cowboy_stream_h.erl:300: :cowboy_stream_h.execute/3
Edited by lain