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

Incompatibility with hackney 1.22.0 #753

Closed
halostatue opened this issue Feb 22, 2025 · 1 comment · Fixed by #754 or #755
Closed

Incompatibility with hackney 1.22.0 #753

halostatue opened this issue Feb 22, 2025 · 1 comment · Fixed by #754 or #755

Comments

@halostatue
Copy link
Contributor

The following arguments were given to Tesla.Adapter.Hackney.handle/2:

         # 1
         {:connect_error, {:error, :econnrefused}}

         # 2
         [recv_timeout: 150000]

     Attempted function clauses (showing 5 out of 5):

         defp handle({:error, _} = error, _opts)
         defp handle({:ok, status, headers}, _opts)
         defp handle({:ok, ref}, _opts) when is_reference(ref)
         defp handle({:ok, status, headers, ref}, opts) when is_reference(ref)
         defp handle({:ok, status, headers, body}, _opts)
@yordis
Copy link
Member

yordis commented Feb 22, 2025

@halostatue are you able to create a PR for it?

I know people are rushing to upgrade hackney but I am away from the computer.

We need to pattern match on that {:connect_error, {:error, reason}}

defp handle({:connect_error, {:error, reason}}, _opts), do: {:error, reason}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants