Ejabberd: Web admin crash

Created on 29 Feb 2020  路  14Comments  路  Source: processone/ejabberd

seems that both latest and 20.02 docker image(ejabberd/ecs) have this problem, after create admin localhost account, accessing web admin page through :5280/admin, ejabberd crash. but with 19.09.1, no such problem

crash log here :



2020-02-29 08:11:35.679600+00:00 [error] <0.841.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.841.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.21>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 54085
  neighbours:

2020-02-29 08:11:35.734446+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.841.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:35.764861+00:00 [error] <0.887.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.887.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.41>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 08:11:35.784171+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.887.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:35.817702+00:00 [error] <0.888.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.888.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.42>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10050
  neighbours:

2020-02-29 08:11:35.853479+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.888.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:36.382963+00:00 [error] <0.889.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.889.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.43>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 17962
  neighbours:

2020-02-29 08:11:36.402185+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.889.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:36.409873+00:00 [error] <0.890.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.890.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.44>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 08:11:36.460345+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.890.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:36.483333+00:00 [error] <0.891.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.891.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10050
  neighbours:

2020-02-29 08:11:36.532223+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.891.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:41.679898+00:00 [error] <0.892.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.892.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.46>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 17958
  neighbours:

2020-02-29 08:11:41.692008+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.892.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:41.715812+00:00 [error] <0.893.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.893.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.47>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 08:11:41.741785+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.893.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:41.771593+00:00 [error] <0.894.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.894.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.48>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10051
  neighbours:

2020-02-29 08:11:41.797790+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.894.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:43.068136+00:00 [error] <0.895.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.895.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.49>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 17962
  neighbours:

2020-02-29 08:11:43.107918+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.895.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:43.111749+00:00 [error] <0.896.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.896.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.50>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 08:11:43.153139+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.896.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:43.211784+00:00 [error] <0.897.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.897.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.51>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10050
  neighbours:

2020-02-29 08:11:43.265686+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.897.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:44.342143+00:00 [error] <0.898.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.898.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.52>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 17958
  neighbours:

2020-02-29 08:11:44.373219+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.898.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:44.381339+00:00 [error] <0.899.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.899.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.53>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 08:11:44.449260+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.899.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:44.494887+00:00 [error] <0.900.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.900.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.54>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10050
  neighbours:

2020-02-29 08:11:44.566327+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.900.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:46.237437+00:00 [error] <0.905.0>@ejabberd_sql:check_error/2:1262 SQL query 'select def, always, never from archive_prefs where username='admin' and server_host='localhost'' failed: "no such column: server_host"
2020-02-29 08:11:46.238136+00:00 [error] <0.905.0>@ejabberd_sql:check_error/2:1255 SQL query 'Q44259032' at {mod_mam_sql,182} failed: "no such column: server_host"
2020-02-29 08:11:47.782833+00:00 [error] <0.910.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.910.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.62>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 17958
  neighbours:

2020-02-29 08:11:47.820202+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.910.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:47.831491+00:00 [error] <0.911.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.911.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.63>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 08:11:47.850398+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.911.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:11:47.868272+00:00 [error] <0.912.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.912.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.64>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10050
  neighbours:

2020-02-29 08:11:47.895905+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.912.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:12:18.277780+00:00 [error] <0.914.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.914.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.67>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 17958
  neighbours:

2020-02-29 08:12:18.312349+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.914.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:12:18.333579+00:00 [error] <0.915.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.915.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.68>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 08:12:18.374086+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.915.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:12:18.444410+00:00 [error] <0.916.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.916.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.69>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10050
  neighbours:

2020-02-29 08:12:18.470853+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.916.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:13:10.782124+00:00 [error] <0.931.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.931.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.70>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 17958
  neighbours:

2020-02-29 08:13:10.811193+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.931.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:13:10.839847+00:00 [error] <0.932.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.932.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.71>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 08:13:10.857307+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.932.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:13:10.873682+00:00 [error] <0.933.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.933.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.72>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10051
  neighbours:

2020-02-29 08:13:10.890978+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.933.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:14:19.578385+00:00 [error] <0.938.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.938.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.74>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 17958
  neighbours:

2020-02-29 08:14:19.598075+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.938.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:14:19.607687+00:00 [error] <0.939.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.939.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.75>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 08:14:19.623316+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.939.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:14:19.658554+00:00 [error] <0.940.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.940.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.76>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10050
  neighbours:

2020-02-29 08:14:19.691659+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.940.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:14:39.151068+00:00 [error] <0.905.0>@ejabberd_sql:check_error/2:1262 SQL query 'SELECT  timestamp, xml, peer, kind, nick FROM archive WHERE username='admin' and server_host='localhost' and timestamp >= 1582960691000000 ORDER BY timestamp ASC  limit 51;' failed: "no such column: server_host"
2020-02-29 08:14:39.152852+00:00 [error] <0.905.0>@ejabberd_sql:check_error/2:1262 SQL query 'SELECT COUNT(*) FROM archive WHERE  username='admin' and server_host='localhost' and timestamp >= 1582960691000000;' failed: "no such column: server_host"
2020-02-29 08:15:20.143402+00:00 [error] <0.943.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.943.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.78>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 17541
  neighbours:

2020-02-29 08:15:20.165006+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.943.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:15:20.175075+00:00 [error] <0.944.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.944.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.79>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 08:15:20.191237+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.944.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:15:20.237200+00:00 [error] <0.945.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.945.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.838.0>,#Port<0.80>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10050
  neighbours:

2020-02-29 08:15:20.265680+00:00 [error] <0.838.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.945.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 08:15:25.019460+00:00 [error] <0.905.0>@ejabberd_sql:check_error/2:1262 SQL query 'SELECT  timestamp, xml, peer, kind, nick FROM archive WHERE username='admin' and server_host='localhost' and timestamp >= 1582964079000000 ORDER BY timestamp ASC  limit 51;' failed: "no such column: server_host"
2020-02-29 08:15:25.021061+00:00 [error] <0.905.0>@ejabberd_sql:check_error/2:1262 SQL query 'SELECT COUNT(*) FROM archive WHERE  username='admin' and server_host='localhost' and timestamp >= 1582964079000000;' failed: "no such column: server_host"
2020-02-29 08:48:23.245541+00:00 [error] <0.731.0>@ejabberd_sql:check_error/2:1262 SQL query 'select def, always, never from archive_prefs where username='admin' and server_host='localhost'' failed: "no such column: server_host"
2020-02-29 08:48:23.246203+00:00 [error] <0.731.0>@ejabberd_sql:check_error/2:1255 SQL query 'Q44259032' at {mod_mam_sql,182} failed: "no such column: server_host"
2020-02-29 08:55:29.057328+00:00 [error] <0.724.0>@ejabberd_sql:check_error/2:1262 SQL query 'select def, always, never from archive_prefs where username='admin' and server_host='localhost'' failed: "no such column: server_host"
2020-02-29 08:55:29.057978+00:00 [error] <0.724.0>@ejabberd_sql:check_error/2:1255 SQL query 'Q44259032' at {mod_mam_sql,182} failed: "no such column: server_host"
2020-02-29 08:58:01.340642+00:00 [error] <0.730.0>@ejabberd_sql:check_error/2:1262 SQL query 'select def, always, never from archive_prefs where username='admin' and server_host='localhost'' failed: "no such column: server_host"
2020-02-29 08:58:01.341263+00:00 [error] <0.730.0>@ejabberd_sql:check_error/2:1255 SQL query 'Q44259032' at {mod_mam_sql,182} failed: "no such column: server_host"
2020-02-29 09:07:43.746295+00:00 [error] <0.714.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.714.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.682.0>,#Port<0.26>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 18008
  neighbours:

2020-02-29 09:07:43.845241+00:00 [error] <0.682.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.714.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:07:43.885756+00:00 [error] <0.715.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.715.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.682.0>,#Port<0.27>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 09:07:43.915940+00:00 [error] <0.682.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.715.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:07:44.009908+00:00 [error] <0.716.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.716.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.682.0>,#Port<0.28>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10050
  neighbours:

2020-02-29 09:07:44.099098+00:00 [error] <0.682.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.716.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:07:50.424975+00:00 [error] <0.724.0>@ejabberd_sql:check_error/2:1262 SQL query 'select def, always, never from archive_prefs where username='admin' and server_host='localhost'' failed: "no such column: server_host"
2020-02-29 09:07:50.426437+00:00 [error] <0.724.0>@ejabberd_sql:check_error/2:1255 SQL query 'Q44259032' at {mod_mam_sql,182} failed: "no such column: server_host"
2020-02-29 09:09:56.431976+00:00 [error] <0.724.0>@ejabberd_sql:check_error/2:1262 SQL query 'SELECT  timestamp, xml, peer, kind, nick FROM archive WHERE username='admin' and server_host='localhost' and timestamp >= 1582964125000000 ORDER BY timestamp ASC  limit 51;' failed: "no such column: server_host"
2020-02-29 09:09:56.433329+00:00 [error] <0.724.0>@ejabberd_sql:check_error/2:1262 SQL query 'SELECT COUNT(*) FROM archive WHERE  username='admin' and server_host='localhost' and timestamp >= 1582964125000000;' failed: "no such column: server_host"
2020-02-29 09:19:36.900666+00:00 [error] <0.700.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.700.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.648.0>,#Port<0.27>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 22566
  neighbours:

2020-02-29 09:19:37.089737+00:00 [error] <0.648.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.700.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:19:37.112230+00:00 [error] <0.726.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.726.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.648.0>,#Port<0.31>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 10496
  neighbours:

2020-02-29 09:19:37.146802+00:00 [error] <0.648.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.726.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:19:37.202287+00:00 [error] <0.727.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.727.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.648.0>,#Port<0.32>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 10079
  neighbours:

2020-02-29 09:19:37.238168+00:00 [error] <0.648.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.727.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:19:37.918375+00:00 [error] <0.728.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.728.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.648.0>,#Port<0.33>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 14487
  neighbours:

2020-02-29 09:19:37.950532+00:00 [error] <0.648.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.728.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:19:37.982408+00:00 [error] <0.729.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.729.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.648.0>,#Port<0.34>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 09:19:38.036235+00:00 [error] <0.648.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.729.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:19:38.078714+00:00 [error] <0.730.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.730.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.648.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10050
  neighbours:

2020-02-29 09:19:38.151368+00:00 [error] <0.648.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.730.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:20:06.878317+00:00 [error] <0.732.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.732.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.648.0>,#Port<0.37>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 17543
  neighbours:

2020-02-29 09:20:06.921639+00:00 [error] <0.648.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.732.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:20:06.934696+00:00 [error] <0.733.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.733.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.648.0>,#Port<0.38>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 09:20:06.956931+00:00 [error] <0.648.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.733.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:20:06.976593+00:00 [error] <0.734.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.734.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.648.0>,#Port<0.39>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10050
  neighbours:

2020-02-29 09:20:06.997256+00:00 [error] <0.648.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.734.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:20:15.326433+00:00 [error] <0.735.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.735.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.648.0>,#Port<0.40>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 22745
  neighbours:

2020-02-29 09:20:15.410744+00:00 [error] <0.648.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.735.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:20:15.447403+00:00 [error] <0.736.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.736.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.648.0>,#Port<0.41>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 10503
  neighbours:

2020-02-29 09:20:15.501915+00:00 [error] <0.648.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.736.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:20:15.570604+00:00 [error] <0.737.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.737.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.648.0>,#Port<0.42>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 10123
  neighbours:

2020-02-29 09:20:15.617010+00:00 [error] <0.648.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.737.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:27:50.299038+00:00 [error] <0.718.0>@ejabberd_sql:check_error/2:1262 SQL query 'select def, always, never from archive_prefs where username='admin' and server_host='localhost'' failed: "no such column: server_host"
2020-02-29 09:27:50.300002+00:00 [error] <0.718.0>@ejabberd_sql:check_error/2:1255 SQL query 'Q44259032' at {mod_mam_sql,182} failed: "no such column: server_host"
2020-02-29 09:27:50.939192+00:00 [error] <0.720.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.720.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.644.0>,#Port<0.29>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 4185
    stack_size: 27
    reductions: 17983
  neighbours:

2020-02-29 09:27:51.219993+00:00 [error] <0.644.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.720.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:27:51.245479+00:00 [error] <0.721.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.721.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.644.0>,#Port<0.30>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 10539
  neighbours:

2020-02-29 09:27:51.270131+00:00 [error] <0.644.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.721.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:27:51.284598+00:00 [error] <0.722.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.722.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.644.0>,#Port<0.31>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 10472
  neighbours:

2020-02-29 09:27:51.323871+00:00 [error] <0.644.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.722.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:27:51.748905+00:00 [error] <0.723.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.723.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.644.0>,#Port<0.32>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 2586
    stack_size: 27
    reductions: 17374
  neighbours:

2020-02-29 09:27:51.783385+00:00 [error] <0.644.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.723.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:27:51.820659+00:00 [error] <0.724.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.724.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.644.0>,#Port<0.33>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 10496
  neighbours:

2020-02-29 09:27:51.956301+00:00 [error] <0.644.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.724.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:27:52.061859+00:00 [error] <0.725.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.725.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.644.0>,#Port<0.34>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10010
  neighbours:

2020-02-29 09:27:52.096260+00:00 [error] <0.644.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.725.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:27:52.840095+00:00 [error] <0.727.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.727.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.644.0>,#Port<0.35>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 14487
  neighbours:

2020-02-29 09:27:52.913250+00:00 [error] <0.728.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.728.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.644.0>,#Port<0.36>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 09:27:52.900905+00:00 [error] <0.644.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.727.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:27:53.028694+00:00 [error] <0.644.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.728.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:27:53.080784+00:00 [error] <0.729.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.729.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.644.0>,#Port<0.37>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10050
  neighbours:

2020-02-29 09:27:53.138037+00:00 [error] <0.644.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.729.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:27:58.294847+00:00 [error] <0.736.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.736.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.644.0>,#Port<0.47>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 17959
  neighbours:

2020-02-29 09:27:58.334784+00:00 [error] <0.644.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.736.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:27:58.381541+00:00 [error] <0.737.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.737.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.644.0>,#Port<0.48>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 09:27:58.423807+00:00 [error] <0.644.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.737.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:27:58.465172+00:00 [error] <0.738.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.738.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.644.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10050
  neighbours:

2020-02-29 09:27:58.557692+00:00 [error] <0.644.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.738.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:28:28.677744+00:00 [error] <0.742.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.742.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.644.0>,#Port<0.52>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 17959
  neighbours:

2020-02-29 09:28:28.689443+00:00 [error] <0.644.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.742.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:28:28.695546+00:00 [error] <0.743.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.743.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.644.0>,#Port<0.53>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 09:28:28.712630+00:00 [error] <0.644.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.743.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:28:28.750451+00:00 [error] <0.744.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.744.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.644.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10050
  neighbours:

2020-02-29 09:28:28.781839+00:00 [error] <0.644.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.744.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:30:15.817115+00:00 [error] <0.720.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.720.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.709.0>,#Port<0.26>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 2586
    stack_size: 27
    reductions: 17997
  neighbours:

2020-02-29 09:30:16.126293+00:00 [error] <0.709.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.720.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:30:16.168930+00:00 [error] <0.721.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.721.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.709.0>,#Port<0.27>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10467
  neighbours:

2020-02-29 09:30:16.303233+00:00 [error] <0.709.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.721.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:30:16.361589+00:00 [error] <0.723.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.723.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.709.0>,#Port<0.28>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10050
  neighbours:

2020-02-29 09:30:16.441028+00:00 [error] <0.709.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.723.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:32:23.441726+00:00 [critical] <0.126.0>@ejabberd_app:start/2:71 Failed to start ejabberd application: Failed to read YAML file '/home/ejabberd/conf/ejabberd.yml': no such file or directory
2020-02-29 09:42:46.673443+00:00 [error] <0.871.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.871.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.835.0>,#Port<0.31>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 4185
    stack_size: 27
    reductions: 62455
  neighbours:

2020-02-29 09:42:46.720964+00:00 [error] <0.835.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.871.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:42:46.723134+00:00 [error] <0.885.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.885.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.835.0>,#Port<0.34>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10516
  neighbours:

2020-02-29 09:42:46.812508+00:00 [error] <0.835.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.885.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:42:46.807221+00:00 [error] <0.886.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.886.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.835.0>,#Port<0.35>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10099
  neighbours:

2020-02-29 09:42:46.879413+00:00 [error] <0.835.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.886.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:44:35.364242+00:00 [error] <0.896.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.896.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.835.0>,#Port<0.46>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 2586
    stack_size: 27
    reductions: 16018
  neighbours:

2020-02-29 09:44:35.383257+00:00 [error] <0.835.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.896.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:44:35.700637+00:00 [error] <0.899.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.899.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.835.0>,#Port<0.49>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 2586
    stack_size: 27
    reductions: 10255
  neighbours:

2020-02-29 09:44:35.714055+00:00 [error] <0.835.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.899.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:47:09.203267+00:00 [error] <0.914.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.914.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.835.0>,#Port<0.52>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 10596
  neighbours:

2020-02-29 09:47:09.219778+00:00 [error] <0.835.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.914.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:47:13.520152+00:00 [error] <0.917.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.917.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.835.0>,#Port<0.55>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 11573
  neighbours:

2020-02-29 09:47:13.552562+00:00 [error] <0.835.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.917.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:47:16.268389+00:00 [error] <0.920.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.920.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.835.0>,#Port<0.58>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 11576
  neighbours:

2020-02-29 09:47:16.279022+00:00 [error] <0.835.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.920.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:48:01.111389+00:00 [error] <0.924.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.924.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.835.0>,#Port<0.61>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 2586
    stack_size: 27
    reductions: 10852
  neighbours:

2020-02-29 09:48:01.118384+00:00 [error] <0.835.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.924.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:48:14.107615+00:00 [error] <0.925.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.925.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.835.0>,#Port<0.62>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 4185
    stack_size: 27
    reductions: 18637
  neighbours:

2020-02-29 09:48:14.142745+00:00 [error] <0.835.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.925.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:48:14.149123+00:00 [error] <0.926.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.926.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.835.0>,#Port<0.63>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 2586
    stack_size: 27
    reductions: 11108
  neighbours:

2020-02-29 09:48:14.200780+00:00 [error] <0.835.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.926.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]
2020-02-29 09:48:14.251076+00:00 [error] <0.927.0>@proc_lib:crash_report/4:508 CRASH REPORT:
  crasher:
    initial call: ejabberd_http:init/3
    pid: <0.927.0>
    registered_name: []
    exception error: bad argument
      in function  maps:from_list/1
         called as maps:from_list([html])
      in call from ejabberd_http:apply_custom_headers/2 (src/ejabberd_http.erl, line 860)
      in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl, line 495)
      in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl, line 287)
      in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl, line 212)
      in call from ejabberd_http:init/3 (src/ejabberd_http.erl, line 142)
    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.126.0>]
    message_queue_len: 0
    messages: []
    links: [<0.835.0>,#Port<0.64>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 2586
    stack_size: 27
    reductions: 10691
  neighbours:

2020-02-29 09:48:14.281231+00:00 [error] <0.835.0>@supervisor:do_restart/3:716 SUPERVISOR REPORT:
    supervisor: {local,ejabberd_http_sup}
    errorContext: child_terminated
    reason: {badarg,[{maps,from_list,[[html]],[]},
                     {ejabberd_http,apply_custom_headers,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,860}]},
                     {ejabberd_http,process_request,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,495}]},
                     {ejabberd_http,process_header,2,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,287}]},
                     {ejabberd_http,parse_headers,1,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,212}]},
                     {ejabberd_http,init,3,
                                    [{file,"src/ejabberd_http.erl"},
                                     {line,142}]},
                     {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,249}]}]}
    offender: [{pid,<0.927.0>},
               {id,undefined},
               {mfargs,{ejabberd_http,start_link,undefined}},
               {restart_type,temporary},
               {shutdown,5000},
               {child_type,worker}]

Enhancement Admin Tools

All 14 comments

Hello,

Could you please show me your config? Mostly i am interested in listener section for port where you are accessing webadmin.

Ok, looks like this was fixes in 00abf5d42c9b9c979b7ac69758a8f6745744f929

@prefiks Do you think we can automate test to avoid regression ?

Will see what can be done, we just don't have any tests for webadmin, but something could be cooked i think.

Ok, looks like this was fixes in 00abf5d

It fixes the crash, but the webadmin doesn't work properly.

It looks like this (styles and scripts are not loaded, 404 error):

懈蟹芯斜褉邪卸械薪懈械

And clicking any link returns a 404 Not Found error too.

I had to revert commit 20205c66c112d459fc0d1ccea4c083627ea9112c to make webadmin work again.

It looks like this (styles and scripts are not loaded, 404 error):
And clicking any link returns a 404 Not Found error too.

You entered this URL, so all its links are broken:
http://localhost:5280/admin

The correct URL contains a slash at the end, so the links to CSS, images and sections are correctly constructed:
http://localhost:5280/admin/

The correct URL contains a slash at the end, so the links to CSS, images and sections are correctly constructed

You're right. But that's a non-obvious behaviour. Before update webadmin worked fine without a slash at the end of URL.

You're right. But that's a non-obvious behaviour.

Well, in fact nothing is naturally obvious. The sysadmin configures it in ejabberd.yml as required. For example, he configures:

    port: 5285
    ip: "::"
    module: ejabberd_http
    request_handlers:
      xmpp/webadm: ejabberd_web_admin

Then he remembers to use this URL, and tells other co-admins to use that one, because it isn't obvious: http://localhost:5285/xmpp/webadm/

Before update webadmin worked fine without a slash at the end of URL.

Right. Before update, the webadmin base path was hardcoded, so even when the admin forgot to end with /, it worked because ejabberd always built it with "/admin/..."

Now the base path is configurable, something that was impossible before. This requires the admin to use the correct URL, because the links are relative to whatever URL he provides. If the provided URL lacks the slash, then defective links will be produced.

I've verified that the documentation is correct:
https://docs.ejabberd.im/admin/guide/managing/#web-admin
I wonder if an admin that doesn't do this simple thing correctly should be able to administer the server at all.

I understand your point of view. But generally in web there is no difference between URL with the trailing slash at the end and URL without it.
https://ejabberd.im works the same as https://ejabberd.im/
https://github.com/processone/ejabberd/issues/3177 works the same as https://github.com/processone/ejabberd/issues/3177/ etc.
Current ejabberd behaviour is different from the normal behaviour.

@badlop Do you see an easy way to support both the / and missing slash at the end of the URL ?

It was not a simple change, but apparently that is very important, so here it is.

I've run manual and dialyzer tests, all seems correct with WebAdmin after this change and with the enhancement. But just in case I missed something, if you find any problem in WebAdmin, please reopen this ticket.

It is possible to create a 20.03.1?
Linked to:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pacija picture pacija  路  4Comments

jjdp picture jjdp  路  3Comments

Vshnv picture Vshnv  路  4Comments

BoopathyRaja picture BoopathyRaja  路  3Comments

sujankumar4593 picture sujankumar4593  路  4Comments