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

(FunctionClauseError) no function clause matching in :hackney_headers_new.params_to_iolist/2 #642

Open
silva96 opened this issue Jun 24, 2020 · 3 comments
Milestone

Comments

@silva96
Copy link

silva96 commented Jun 24, 2020

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?

@benoitc benoitc added this to the 1.17.0 milestone Sep 11, 2020
@silva96
Copy link
Author

silva96 commented Sep 17, 2020

hi @benoitc I see you added this tho a milestone, that means it's a confirmed bug or what?

@benoitc
Copy link
Owner

benoitc commented Sep 17, 2020

it means i will ensure to close it this week :) Have been a bit more side tracked than expected but will maintain a release sometimes this week.

@silva96
Copy link
Author

silva96 commented Nov 26, 2020

@benoitc great, take your time. Thanks!

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