-
Notifications
You must be signed in to change notification settings - Fork 437
Open
Milestone
Description
Hi, im using httpoison 1.6.2 which uses hackney 1.16.0
Some requests are failing with :closed
stacktrace:
** (FunctionClauseError) no function clause matching in :hackney_headers_new.params_to_iolist/2
(hackney) /home/ubuntu/app_build/prod/deps/hackney/src/hackney_headers_new.erl:201: :hackney_headers_new.params_to_iolist(:closed, [])
(hackney) /home/ubuntu/app_build/prod/deps/hackney/src/hackney_headers_new.erl:190: anonymous fn/3 in :hackney_headers_new.to_iolist/1
(hackney) /home/ubuntu/app_build/prod/deps/hackney/src/hackney_headers_new.erl:148: :hackney_headers_new.do_fold/3
(hackney) /home/ubuntu/app_build/prod/deps/hackney/src/hackney_headers_new.erl:184: :hackney_headers_new.to_iolist/1
(hackney) /home/ubuntu/app_build/prod/deps/hackney/src/hackney_request.erl:101: :hackney_request.perform/2
(hackney) /home/ubuntu/app_build/prod/deps/hackney/src/hackney.erl:376: :hackney.send_request/2
(httpoison) lib/httpoison/base.ex:796: HTTPoison.Base.request/6
also happens with :connect_timeout
FunctionClauseError) no function clause matching in :hackney_headers_new.params_to_iolist/2 (hackney)
/home/ubuntu/app_build/prod/deps/hackney/src/hackney_headers_new.erl:201: :hackney_headers_new.params_to_iolist(:connect_timeout, [])
(hackney) /home/ubuntu/app_build/prod/deps/hackney/src/hackney_headers_new.erl:190: anonymous fn/3 in :hackney_headers_new.to_iolist/1
(hackney) /home/ubuntu/app_build/prod/deps/hackney/src/hackney_headers_new.erl:148: :hackney_headers_new.do_fold/3
(hackney) /home/ubuntu/app_build/prod/deps/hackney/src/hackney_headers_new.erl:184: :hackney_headers_new.to_iolist/1
(hackney) /home/ubuntu/app_build/prod/deps/hackney/src/hackney_request.erl:101: :hackney_request.perform/2
(hackney) /home/ubuntu/app_build/prod/deps/hackney/src/hackney.erl:376: :hackney.send_request/2
(httpoison) lib/httpoison/base.ex:796: HTTPoison.Base.request/6
I suspect the connection is closed by the remote, but hackney doesnt know how to handle this?
davidwebster48
Metadata
Metadata
Assignees
Labels
No labels