Skip to content

crash in hackney_http:te_chunked #361

Description

@namjae

i'm using hackney via httpoison.
and i got following error.

00:19:34.996 [error] Error in process #PID<0.1102.0> on node :"foo@127.0.0.1" with exit value:
{{:case_clause, {:error, {:poorly_formatted_size, 'ad '}}},
[{:hackney_http, :te_chunked, 2, [file: 'src/hackney_http.erl', line: 418]},
                 {:hackney_http, :transfer_decode, 2,
                 [file: 'src/hackney_http.erl', line: 361]},
                 {:hackney_response, :stream_body, 1,
                 [file: 'src/hackney_response.erl', line: 142]},
                 {:hackney_response, :read_body, 3,
                 [file: 'src/hackney_response.erl', line: 309]},
                 {:hackney, :"-body/1-fun-0-", 1, [file: 'src/hackney.erl', line: 504]},
                 {HTTPoison.Base, :request, 9, [file: 'lib/httpoison/base.ex', line: 406]},
                 {Foo, :get_remote, 1, [file: 'lib/foo.ex', line: 100]},
                 {Foo, :add_pages_1, 3, [file: 'lib/foo.ex', line: 40]}]}

i think there's something wrong with web page or the host.
but te_chunked should have the clause for 'poorly_formatted_size' from read_size. i think.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions