Getting Errors after running mod_http_offline.erl

Hi,
We are getting error while generate push notification from ejabberd for offline messages.

If we test the push notification file with static data its working perfectly but not getting called from module.

we used mod_http_offline module.

Error we are facing is below. Kindly help us to get out of this issue.

Error log after running mod_http_offline.erl

{offline_message_hook,[{jid,<<"919429618756">>,<<“xyz.com">>,<<"26112267011450933160669531">>,<<"919429618756">>,<<"xyz.com">>,<<"26112267011450933160669531">>},{jid,<<"918787878787">>,<<"xyz.com">>,<<"10640377501450932768366216">>,<<"918787878787">>,<<"xyz.com">>,<<"10640377501450932768366216">>},{xmlel,<<"message">>,[{<<"from">>,<<"919429618756@xyz.com">>},{<<"to">>,<<"918787878787@xyz.com/10640377501450932768366216">>},{<<"id">>,<<"AqLgKTeu">>}],[{xmlel,<<"x">>,[{<<"xmlns">>,<<"jabber:x:event">>}],[{xmlel,<<"delivevered">>,[],[]},{xmlel,<<"id">>,[],[{xmlcdata,<<"EYx1Bhh0">>}]}]}]}]}

2015-12-24 12:59:22.300 [error] <0.3631.0>@ejabberd_hooks:run1:332 {function_clause,[{lists,thing_to_list,[<<>>],[{file,"lists.erl"},{line,601}]}{lists,flatmap,2,[{file,"lists.erl"},{line,1248}]},{lists,flatmap,2,[{file,"lists.erl"},{line,1248}]},{mod_http_offline,post_offline_message,3,[{file,"mod_http_offline.erl"},{line,38}]},{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,111}]},{ejabberd_local,route,3,[{file,"src/ejabberd_local.erl"},{line,112}]}]}

2015-12-24 13:00:45.785 [error] <0.3703.0>@ejabberd_config:validate_opts:794 unknown option 'loopback' will be likely ignored

2015-12-24 13:00:45.785 [error] <0.3703.0>@ejabberd_config:validate_opts:794 unknown option 'local' will be likely ignored

Looking at the module source

Looking at the module source code in https://github.com/raelmax/mod_http_offline/commit/b63c3d4c2b4c50a0c6857...
and your error message, it appears that one of From, To, Body or MessageID is an empty string (in binary format).

You should check the info message logged previously, which may give you some hint.

Hi, Thank you for your reply

Hi, Thank you for your reply but we are not getting where exactly we are getting the empty string as we are sending the correct data with From, To and MessageID.

Can you please point us do let us know if you need more from our end but kindly help to resolve this issue. As we have seen but we are not getting where the value passes to blank and we are not getting notification because again it is not not called the offline hook where we are facing issue.

Waiting for your response.
Thanks

Syndicate content