Password reset doesn't work
Environment
- Installation type (OTP or From Source): Source
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.1.1
- Elixir version (
elixir -v
for from source installations, N/A for OTP): 1.10.4 - Operating system: Ubuntu 20.04
- PostgreSQL version (
psql -V
): 12.4
Bug description
POST /auth/password
results in a 500 internal server error:
Sep 21 19:07:01 gleasonator mix[3068512]: 19:07:01.366 request_id=FjbbdulZkUv_FNoAuWMh [error] Internal server error: %MatchError{term: 2}
Sep 21 19:07:01 gleasonator mix[3068512]: 19:07:01.367 request_id=FjbbdulZkUv_FNoAuWMh [info] Converted error {:badmatch, 2} to 500 response
Sep 21 19:07:01 gleasonator mix[3068512]: 19:07:01.371 [error] #PID<0.16710.267> running Pleroma.Web.Endpoint (connection #PID<0.20411.267>, stream id 1) terminated
Sep 21 19:07:01 gleasonator mix[3068512]: Server: gleasonator.com:80 (http)
Sep 21 19:07:01 gleasonator mix[3068512]: Request: POST /auth/password
Sep 21 19:07:01 gleasonator mix[3068512]: ** (exit) an exception was raised:
Sep 21 19:07:01 gleasonator mix[3068512]: ** (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, Tuple, Phoenix.HTML.Form, Time, Atom, Integer, BitString, List, DateTime, Float
Sep 21 19:07:01 gleasonator mix[3068512]: (phoenix_html 2.14.2) lib/phoenix_html/safe.ex:1: Phoenix.HTML.Safe.impl_for!/1
Sep 21 19:07:01 gleasonator mix[3068512]: (phoenix_html 2.14.2) lib/phoenix_html/safe.ex:15: Phoenix.HTML.Safe.to_iodata/1
Sep 21 19:07:01 gleasonator mix[3068512]: (phoenix 1.4.17) lib/phoenix/controller.ex:776: Phoenix.Controller.__put_render__/5
Sep 21 19:07:01 gleasonator mix[3068512]: (phoenix 1.4.17) lib/phoenix/endpoint/render_errors.ex:77: Phoenix.Endpoint.RenderErrors.instrument_render_and_send/5
Sep 21 19:07:01 gleasonator mix[3068512]: (phoenix 1.4.17) lib/phoenix/endpoint/render_errors.ex:62: Phoenix.Endpoint.RenderErrors.__catch__/5
Sep 21 19:07:01 gleasonator mix[3068512]: (phoenix 1.4.17) lib/phoenix/endpoint/cowboy2_handler.ex:42: Phoenix.Endpoint.Cowboy2Handler.init/4
Sep 21 19:07:01 gleasonator mix[3068512]: (cowboy 2.8.0) /opt/pleroma/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
Sep 21 19:07:01 gleasonator mix[3068512]: (cowboy 2.8.0) /opt/pleroma/deps/cowboy/src/cowboy_stream_h.erl:300: :cowboy_stream_h.execute/3
This is the request:
Edited by Alex Gleason