rich media parse failure sometimes just dumps a data structure of proxy options
Environment
- Installation type (OTP or From Source): from source
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.4.3
- Elixir version (
elixir -v
for from source installations, N/A for OTP):
Erlang/OTP 23 [erts-11.1.8] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1]
Elixir 1.10.3 (compiled with Erlang/OTP 22)
- Operating system: Debian 11
- PostgreSQL version (
psql -V
): psql (PostgreSQL) 13.7 (Debian 13.7-0+deb11u1)
Bug description
Getting some errors in the log like follows:
[warn] Rich media error for <removed>: {:options, {:socket_options, [socks5_transport: :hackney_ssl, socks5_resolve: :undefined, socks5_pass: :undefined, socks5_user: :undefined, socks5_port: 1080, socks5_host: :localhost, insecure: false, ssl_options: [versions: [:"tlsv1.2", :"tlsv1.1", :tlsv1]], packet_size: 0, packet: 0, header: 0, active: false, mode: :binary]}}
This appears to just be a dump of options similar to those set in the config for :http
and while it's likely relevant to the issue (some rich media fetches failing over a forward proxy), it doesn't provide a lot of insight as it's impossible to tell what exactly is breaking or why, without being at least somewhat skilled at reading Elixir/Erlang.
Apologies if this is too trivial an issue, but I'm trying to debug forward proxy problems and am running into this. No experience with the language or framework so I don't know yet how to modify/fix it myself, so in part this is also a note to self.