Skip to content

crash creating invites: handle misconfiguration more gracefully  #4525

@sstrigler

Description

@sstrigler
2026-02-11 09:41:26.800268-06:00 [error] <0.662.0>@mod_http_api:handle/4:259 REST API Error:
 generate_invite([{<<"host">>,<<"example.org">>}]) ->
 error:{badmatch, error}
 [{mod_invites_http, tmpl_to_renderer, 1,
  [{file, "src/mod_invites_http.erl"},
   {line, 362}]},
 {mod_invites_http, render_url, 2,
  [{file, "src/mod_invites_http.erl"},
   {line, 317}]},
 {mod_invites, gen_invite, 2,
  [{file, "src/mod_invites.erl"},
   {line, 429}]},
 {mod_invites, generate_invite, 2,
  [{file, "src/mod_invites.erl"},
   {line, 410}]},
 {ejabberd_commands, do_execute_command, 2,
  [{file, "src/ejabberd_commands.erl"},
   {line, 324}]},
 {mod_http_api, handle2, 4,
  [{file, "src/mod_http_api.erl"},
   {line, 272}]},
 {mod_http_api, handle, 4,
  [{file, "src/mod_http_api.erl"},
   {line, 231}]},
 {erpc, execute_call, 4,
  [{file, "erpc.erl"},
   {line, 1262}]}]

Metadata

Metadata

Assignees

Labels

Component:InvitesInvite-based account registration, implemented in mod_invites

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions