(UndefinedFunctionError) function nil.__struct__/0 is undefined
First, I know I'm running an older release, so soz if this is fixed. Server is piggo.space with 2.1.2
pleroma | Server: piggo.space:80 (http)
pleroma-db | 2021-03-07 22:30:26.161 UTC [7619] STATEMENT: INSERT INTO "objects" ("data","inserted_at","updated_at") VALUES ($1,$2,$3) RETURNING "id"
pleroma | Request: GET /api/v1/accounts/verify_credentials
pleroma | ** (exit) an exception was raised:
pleroma-db | 2021-03-07 22:55:25.946 UTC [36] ERROR: duplicate key value violates unique constraint "objects_unique_apid_index"
pleroma | ** (UndefinedFunctionError) function nil.__struct__/0 is undefined
pleroma | nil.__struct__()
pleroma | (elixir) lib/map.ex:894: Map.from_struct/1
pleroma | (pleroma) lib/pleroma/web/mastodon_api/views/account_view.ex:367: Pleroma.Web.MastodonAPI.AccountView.maybe_put_notification_settings/3
pleroma | (pleroma) lib/pleroma/web/mastodon_api/views/account_view.ex:286: Pleroma.Web.MastodonAPI.AccountView.do_render/2
pleroma | (phoenix) lib/phoenix/view.ex:410: Phoenix.View.render_to_iodata/3
pleroma | (phoenix) lib/phoenix/controller.ex:776: Phoenix.Controller.__put_render__/5
pleroma | (pleroma) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.instrument/4
pleroma | (phoenix) lib/phoenix/controller.ex:792: Phoenix.Controller.instrument_render_and_send/4
pleroma |
pleroma-db | 2021-03-07 22:55:25.946 UTC [36] DETAIL: Key ((data ->> 'id'::text))=(https://octodon.social/users/CobaltVelvet/statuses/105850971187200385) already exists.
pleroma | 22:20:24.194 request_id=FmsbOUg309p_oigAco6R [error] Internal server error: %UndefinedFunctionError{arity: 0, function: :__struct__, message: nil, module: nil, reason: nil}
pleroma |
pleroma-db | 2021-03-07 22:55:25.946 UTC [36] STATEMENT: INSERT INTO "objects" ("data","inserted_at","updated_at") VALUES ($1,$2,$3) RETURNING "id"
pleroma | 22:20:24.195 request_id=FmsbOUg309p_oigAco6R [info] Converted error :undef to 500 response
pleroma |
ignore the DB error, it's always doing that.
The problem is that one user can't login and always gets 500 after clicking the submit button at the login form.