Skip to content
This repository was archived by the owner on Oct 17, 2020. It is now read-only.
This repository was archived by the owner on Oct 17, 2020. It is now read-only.

problems with mod_http_offline #1

Description

@shajunr88

This code does not working in ejabberd 16.09. Parameters _From, _To, Packet not getting in create_message(_From, _To, Packet).
Following error occurs while running this code :
[error] <0.523.0>@ejabberd_hooks:run1:332 {function_clause,[{lists,thing_to_list,[<<>>],[{file,"lists.erl"},{line,602}]},{lists,flatmap,2,[{file,"lists.erl"},{line,1249}]},{lists,flatmap,2,[{file,"lists.erl"},{line,1249}]},{mod_http_offline,post_offline_message,3,[{file,"mod_http_offline.erl"},{line,51}]},{ejabberd_hooks,safe_apply,3,[{file,"src/ejabberd_hooks.erl"},{line,382}]},{ejabberd_hooks,run1,3,[{file,"src/ejabberd_hooks.erl"},{line,329}]},{ejabberd_sm,route,3,[{file,"src/ejabberd_sm.erl"},{line,117}]},{ejabberd_local,route,3,[{file,"src/ejabberd_local.erl"},{line,114}]}]}
running hook: {offline_message_hook,[{jid,<<"admin">>,<<"localhost">>,<<"Psi+">>,<<"admin">>,<<"localhost">>,<<"Psi+">>},{jid,<<"test3">>,<<"localhost">>,<<>>,<<"test3">>,<<"localhost">>,<<>>},{xmlel,<<"message">>,[{<<"xml:lang">>,<<"en">>},{<<"to">>,<<"test3@localhost">>},{<<"id">>,<<"abd4a">>}],[{xmlcdata,<<"\n">>},{xmlel,<<"subject">>,[],[]},{xmlcdata,<<"\n">>},{xmlel,<<"body">>,[],[{xmlcdata,<<"hi\n">>}]},{xmlcdata,<<"\n">>}]}]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions