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

Unknown CA error in Goth #99

Closed
Papillon6814 opened this issue Apr 15, 2021 · 1 comment
Closed

Unknown CA error in Goth #99

Papillon6814 opened this issue Apr 15, 2021 · 1 comment

Comments

@Papillon6814
Copy link

Hello.
I'm using goth with elixir-google-api.

Goth works in my dev environment, but It does not work in my remote docker container.

** (MatchError) no match of right hand side value: {:error, %HTTPoison.Error{id: nil, reason: {:tls_alert, {:unknown_ca, 'TLS client: In state wait_cert_cr at ssl_handshake.erl:1895 generated CLIENT ALERT: Fatal - Unknown CA\n'}}}}

It occurs when I run this function.

{:ok, token} = Goth.Token.for_scope("https://www.googleapis.com/auth/cloud-platform")

Is there any hints to resolve it?

@wojtekmach
Copy link
Collaborator

I remember seeing this error with certain hackney versions, Id try upgrading to the latest. Same goes for your OTP version.

Basically if HTTPoison.get!("https://www.googleapis.com/auth/cloud-platform") fails, it is not a Goth problem per se, if that makes sense.

hope this helps!

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