Skip to content

Packetbeat HTTP parsing fails on empty status phrase #6176

Closed
@adriansr

Description

An HTTP response whose status phrase is empty causes the following error:

2018-01-25T10:50:49Z WARN Failed to understand HTTP response status: 302

For example :

HTTP/1.1 302
Location: http://172.17.0.12:8080/resources/userinfo
Content-Length: 0
Date: Thu, 25 Jan 2018 10:50:48 GMT
Connection: close

The response parser in https://github.com/elastic/beats/blob/master/packetbeat/protos/http/http_parser.go#L224 is expecting the status-phrase to be non-empty.

From this question on discuss.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions