ejabberd-contrib
ejabberd-contrib copied to clipboard
mod_statsdx error
2025-11-20 17:31:22.074292+03:00 [error] <0.710.0> Process #PID<0.710.0> on node :ejabberd@localhost raised an exception
** (ArgumentError) errors were found at the given arguments:
* 3rd argument: not a list
(stdlib 6.2.2.2) :lists.keyfind(:conn, 1, :offline)
/opt/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_statsdx/src/mod_statsdx.erl:916: :mod_statsdx.get_connection_type/3
/opt/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_statsdx/src/mod_statsdx.erl:893: :mod_statsdx.received_response/7
Debian13 ejabberd25.10
This happens when a client connects, mod_statsdx asks details, client sends a response and immediately closes the connection, even before mod_statsdx gathers the client connection method from the database.
I've just committed a simple fix.