hackney
hackney copied to clipboard
crash in hackney_http:te_chunked
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 :"[email protected]" 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.
+1
I am receiving a similar error in the same function, but mine says no case clause matching: {:error, :poorly_formatted_chunked_size}. I'll try to fix and submit a PR.