erlyaws / yaws

Yaws webserver
https://erlyaws.github.io
BSD 3-Clause "New" or "Revised" License
1.28k stars 267 forks source link

function_clause: {yaws, to_lower, ...} #306

Closed leoliu closed 7 years ago

leoliu commented 7 years ago

I saw this a couple of times in the report.log file and wonder if it is a bug?

=ERROR REPORT==== 26-Apr-2017::23:05:44 ===
Yaws process died: {function_clause,
                    [{yaws,to_lower,
                      [{'EXIT',
                        {function_clause,
                         [{yaws_api,'-fold_others/4-fun-0-',
                           [{http_error,
                             "\"Referer\": 152.77.237.37/mainFrame.htm\r\n"},
                            undefined],
                           [{file,"yaws_api.erl"},{line,1501}]},
                          {lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
                          {yaws_api,get_header,2,
                           [{file,"yaws_api.erl"},{line,1484}]},
                          {yaws_server,body_method,4,
                           [{file,"yaws_server.erl"},{line,1709}]},
                          {yaws_server,aloop,4,
                           [{file,"yaws_server.erl"},{line,1249}]},
                          {yaws_server,acceptor0,2,
                           [{file,"yaws_server.erl"},{line,1072}]},
                          {proc_lib,init_p_do_apply,3,
                           [{file,"proc_lib.erl"},{line,247}]}]}}],
                      [{file,"yaws.erl"},{line,1136}]},
                     {yaws_server,body_method,4,
                      [{file,"yaws_server.erl"},{line,1713}]},
                     {yaws_server,aloop,4,
                      [{file,"yaws_server.erl"},{line,1249}]},
                     {yaws_server,acceptor0,2,
                      [{file,"yaws_server.erl"},{line,1072}]},
                     {proc_lib,init_p_do_apply,3,
                      [{file,"proc_lib.erl"},{line,247}]}]}
vinoski commented 7 years ago

Thanks. Yes, I think we can consider it a bug, since having this in the log doesn't seem helpful. I'll fix it.

leoliu commented 7 years ago

Thanks.