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

HTTPoison.Error when trying to retrieve token #72

Closed
ghost opened this issue May 21, 2020 · 4 comments
Closed

HTTPoison.Error when trying to retrieve token #72

ghost opened this issue May 21, 2020 · 4 comments

Comments

@ghost
Copy link

ghost commented May 21, 2020

This only appears to have cropped up recently but there is now an error when retrieving the token from Goth.

Goth.Client.get_access_token("https://www.googleapis.com/auth/pubsub")
=NOTICE REPORT==== 21-May-2020::17:29:31.899288 ===
TLS client: In state certify at tls_connection.erl:1164 generated CLIENT ALERT: Fatal - Handshake Failure - malformed_handshake_data

{:error,
%HTTPoison.Error{
  id: nil,
  reason: {:tls_alert,
   {:handshake_failure,
    'received CLIENT ALERT: Fatal - Handshake Failure - malformed_handshake_data'}}
}}

I am using erlang 22.0 along with Elixir 1.9.4 and 1.10.3.

There is a server that is using elrang 23 as a base and that also has the same issue.

@Fudoshiki
Copy link

@methyl
Copy link

methyl commented Dec 2, 2020

Running mix deps.update hackney fixed this problem for me.

@yoelfme
Copy link

yoelfme commented Jan 19, 2021

Running mix deps.update hackney fixed this problem for me.

thanks, that saved my night!

@wojtekmach
Copy link
Collaborator

Yes, it can be solved by updating hackney, thanks everyone for providing extra context.

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

4 participants