Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
leoliu opened this issue Apr 26, 2017 · 2 comments
Closed

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

leoliu opened this issue Apr 26, 2017 · 2 comments

Comments

@leoliu
Copy link
Contributor

leoliu commented Apr 26, 2017

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
Copy link
Collaborator

vinoski commented Apr 27, 2017

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
Copy link
Contributor Author

leoliu commented Apr 27, 2017

Thanks.

vladdu pushed a commit to vladdu/yaws that referenced this issue Jan 26, 2021
When processing HTTP headers in yaws_api:fold_others/4, ignore
http_error tuples and other values that are not http_header tuples.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants