Admin API: Group reports time out
Commit: 52a0bf62
[error] #PID<0.954.0> running Pleroma.Web.Endpoint (connection #PID<0.953.0>, stream id 1) terminated
Server: patch.cx:80 (http)
Request: GET /api/pleroma/admin/grouped_reports
** (exit) an exception was raised:
** (DBConnection.ConnectionError) tcp recv: closed (the connection was closed by the pool, possibly due to a timeout or because the
pool has been terminated)
(ecto_sql) lib/ecto/adapters/sql.ex:629: Ecto.Adapters.SQL.raise_sql_call_error/1
(ecto_sql) lib/ecto/adapters/sql.ex:562: Ecto.Adapters.SQL.execute/5
(ecto) lib/ecto/repo/queryable.ex:177: Ecto.Repo.Queryable.execute/4
(ecto) lib/ecto/repo/queryable.ex:17: Ecto.Repo.Queryable.all/3
(pleroma) lib/pleroma/web/activity_pub/utils.ex:808: Pleroma.Web.ActivityPub.Utils.parse_report_group/1
(elixir) lib/enum.ex:1336: Enum."-map/2-lists^map/1-0-"/2
(pleroma) lib/pleroma/web/activity_pub/utils.ex:866: Pleroma.Web.ActivityPub.Utils.get_reports_grouped_by_status/1
(pleroma) lib/pleroma/web/admin_api/admin_api_controller.ex:668: Pleroma.Web.AdminAPI.AdminAPIController.list_grouped_reports/2
(pleroma) lib/pleroma/web/admin_api/admin_api_controller.ex:5: Pleroma.Web.AdminAPI.AdminAPIController.action/2
(pleroma) lib/pleroma/web/admin_api/admin_api_controller.ex:5: Pleroma.Web.AdminAPI.AdminAPIController.phoenix_controller_pipeli
ne/2
(pleroma) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.instrument/4
(phoenix) lib/phoenix/router.ex:288: Phoenix.Router.__call__/2
(pleroma) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.plug_builder_call/2
(pleroma) lib/plug/debugger.ex:122: Pleroma.Web.Endpoint."call (overridable 3)"/2
(pleroma) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.call/2
(phoenix) lib/phoenix/endpoint/cowboy2_handler.ex:42: Phoenix.Endpoint.Cowboy2Handler.init/4
(cowboy) /home/patch-pleroma/pleroma/deps/cowboy/src/cowboy_handler.erl:41: :cowboy_handler.execute/2
(cowboy) /home/patch-pleroma/pleroma/deps/cowboy/src/cowboy_stream_h.erl:320: :cowboy_stream_h.execute/3
(cowboy) /home/patch-pleroma/pleroma/deps/cowboy/src/cowboy_stream_h.erl:302: :cowboy_stream_h.request_process/3
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Edited by feld