Impossible to go back to Tesla.Adapter.Hackney from Gun in latest develop
- Pleroma version: commit 6d33c89c
- Erlang OTP version: 22.1.7 (NixOS stable)
- In config (static, not in DB):
config :tesla, adapter: Tesla.Adapter.Hackney
It seems that Pleroma.Gun.ConnectionPool is hardcoded:
12:46:15.671 [error] request_id=FiLS9s28ldV5JFwAAEhh Internal server error: %ArgumentError{message: "unknown registry: Pleroma.Gun.ConnectionPool"}
12:46:15.690 [error] #PID<0.3360.0> running Pleroma.Web.Endpoint (connection #PID<0.3359.0>, stream id 1) terminated
Server: birds.garden:80 (http)
Request: POST /inbox
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Plug.Conn.resp/3
(plug) lib/plug/conn.ex:577: Plug.Conn.resp(%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{digest: "SHA-256=4ECTiuPsL5LlQKTg/SlbGSl3CwhVbukEwt4vhBy5zOY=", kind: :error, layout: false, locale: "en", reason: %ArgumentError{message: "unknown registry: Pleroma.Gun.ConnectionPool"}, remote_ip_found: true, stack: [{Registry, :key_info!, 1, [file: 'lib/registry.ex', line: 1243]}, {Registry, :select, 2, [file: 'lib/registry.ex', line: 1210]}, {Pleroma.Gun.ConnectionPool, :release_conn, 1, [file: 'lib/pleroma/gun/connection_pool.ex', line: 67]}, {Pleroma.HTTP.Middleware.FollowRedirects, :redirect, 3, [file: 'lib/pleroma/tesla/middleware/follow_redirects.ex', line: 64]}, {Pleroma.Object.Fetcher, :fetch_and_contain_remote_object_from_id, 1, [file: 'lib/pleroma/object/fetcher.ex', line: 176]}, {Pleroma.Web.ActivityPub.ActivityPub, :fetch_and_prepare_user_from_ap_id, 1, [file: 'lib/pleroma/web/activity_pub/activity_pub.ex', line: 1365]}, {Pleroma.Web.ActivityPub.ActivityPub, :make_user_from_ap_id, 1, [file: 'lib/pleroma/web/activity_pub/activity_pub.ex', line: 1410]}, {Pleroma.User, :get_or_fetch_by_ap_id, 1, [file: 'lib/pleroma/user.ex', line: 1676]}], status: 500}, before_send: [#Function<0.61458113/1 in Pleroma.Web.Endpoint.PipelineInstrumenter.call/2>, #Function<1.16531471/1 in Plug.Logger.call/2>], body_params: …, scheme: :http, script_name: [], secret_key_base: :..., state: :unset, status: 500}, 500, %{errors: %{detail: "Internal server error"}})
(phoenix) lib/phoenix/endpoint/render_errors.ex:77: Phoenix.Endpoint.RenderErrors.instrument_render_and_send/5
(phoenix) lib/phoenix/endpoint/render_errors.ex:62: Phoenix.Endpoint.RenderErrors.__catch__/5
(phoenix) lib/phoenix/endpoint/cowboy2_handler.ex:42: Phoenix.Endpoint.Cowboy2Handler.init/4
(cowboy) /home/pleroma/pleroma/deps/cowboy/src/cowboy_handler.erl:41: :cowboy_handler.execute/2
(cowboy) /home/pleroma/pleroma/deps/cowboy/src/cowboy_stream_h.erl:320: :cowboy_stream_h.execute/3
(cowboy) /home/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