mod_conversejs error
when switching to Conversejs using a link from WebAdmin:
2025-11-15 22:24:48.005729+03:00 [error] <0.2358.0>@ejabberd_http:process/1:376 HTTP handler crashed:
exception error: construction of binary failed
in function mod_conversejs:build_token/2 (src/mod_conversejs.erl, line 299)
*** segment 2 of type 'binary': expected a binary but got:
{scram,<<"1EE5/Vk07ORfrJt+1IUWy68wgysNwR4YCKWIlmkW9zwFW5uYFhAmWbTe07XslY/n4ral"...>>,
<<"wYADqlji32UMWMKXVb85JMLjdFVi66esFiqxX68iq1zAgonePwu3NoFfLhnH4aNQ"...>>,
<<"wSpxduJQmGcN9ikPRDYNcw==">>,sha512,4096}
in call from mod_conversejs:check_token_get_password/2 (src/mod_conversejs.erl, line 306)
in call from mod_conversejs:get_autologin_options/1 (src/mod_conversejs.erl, line 288)
in call from mod_conversejs:process/2 (src/mod_conversejs.erl, line 57)
in call from ejabberd_http:process/2 (src/ejabberd_http.erl, line 373)
in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 503)
in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 295)
in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 220)
Debian13 ejabberd25.10
The problem appears when the passwords are stored in scram instead of plaintext. I have just pushed a fix for that, which also modifies how the credentials are passed from WebAdmin menu to mod_conversejs path process.
how can I fix this error? wait for the next release?
How exactly did you install ejabberd?
Debian13 ejabberd25.10
sudo curl -o /etc/apt/sources.list.d/ejabberd.list https://repo.process-one.net/ejabberd.list sudo curl -o /etc/apt/trusted.gpg.d/ejabberd.gpg https://repo.process-one.net/ejabberd.gpg sudo apt update apt-cache policy ejabberd sudo apt install ejabberd
+MariaDB + Apache + Let’s Encrypt
Yes, better wait for the next release. In the meantime, you can login to Converse manually, providing the account and password manually.