Listing accounts I am following fails with: Internal server error: %UndefinedFunctionError{arity: 0, function: :banner, message: nil, module: nil, reason: nil}
Listing the accounts I am following fails with Internal server error: %UndefinedFunctionError{arity: 0, function: :banner, message: nil, module: nil, reason: nil}
I've narrowed it down by limiting the API to 1 account per call. It fails on https://pla.social/api/v1/accounts/1/following?max_id=268&limit=1
. It works with max_id=267 and max_id=269. How can I identify and delete the corrupt user record? All the IDs in the users table are in this format c9dab747-7f8d-4923-a327-4a64bb9f89b4
.
Below is the complete exception:
May 14 07:13:18 pla-social mix[1406]: 07:13:18.769 request_id=2mf8gk0s70o6qvr84c0ieg11 [info] GET /api/v1/accounts/1/following
May 14 07:13:18 pla-social mix[1406]: 07:13:18.795 request_id=2mf8gk0s70o6qvr84c0ieg11 [info] Converted error :undef to 500 response
May 14 07:13:18 pla-social mix[1406]: 07:13:18.795 request_id=2mf8gk0s70o6qvr84c0ieg11 [error] Internal server error: %UndefinedFunctionError{arity: 0, function: :banner, message: nil, module: nil, reason: nil}
May 14 07:13:18 pla-social mix[1406]: 07:13:18.796 request_id=2mf8gk0s70o6qvr84c0ieg11 [info] Sent 500 in 27ms
May 14 07:13:18 pla-social mix[1406]: 07:13:18.799 [error] #PID<0.1816.224> running Pleroma.Web.Endpoint (connection #PID<0.1985.224>, stream id 1) terminated
May 14 07:13:18 pla-social mix[1406]: Server: pla.social:80 (http)
May 14 07:13:18 pla-social mix[1406]: Request: GET /api/v1/accounts/1/following?max_id=268&limit=1
May 14 07:13:18 pla-social mix[1406]: ** (exit) an exception was raised:
May 14 07:13:18 pla-social mix[1406]: ** (UndefinedFunctionError) function nil.banner/0 is undefined
May 14 07:13:18 pla-social mix[1406]: nil.banner()
May 14 07:13:18 pla-social mix[1406]: (pleroma) lib/pleroma/user.ex:92: Pleroma.User.banner_url/2
May 14 07:13:18 pla-social mix[1406]: (pleroma) lib/pleroma/web/mastodon_api/views/account_view.ex:70: Pleroma.Web.MastodonAPI.AccountView.do_render/2
May 14 07:13:18 pla-social mix[1406]: (elixir) lib/enum.ex:1327: Enum."-map/2-lists^map/1-0-"/2
May 14 07:13:18 pla-social mix[1406]: (pleroma) lib/pleroma/web/mastodon_api/views/account_view.ex:16: Pleroma.Web.MastodonAPI.AccountView.render/2
May 14 07:13:18 pla-social mix[1406]: (phoenix) lib/phoenix/view.ex:399: Phoenix.View.render_to_iodata/3
May 14 07:13:18 pla-social mix[1406]: (phoenix) lib/phoenix/controller.ex:729: Phoenix.Controller.__put_render__/5
May 14 07:13:18 pla-social mix[1406]: (pleroma) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.instrument/4