Papillon6814

Papillon6814

Hello.
I’m using elixir-google-api for storing images in google cloud storage.
I use goth for authentication of GCP.

Goth works in my development environment, but it does not work in a 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'}}}}

The error occurs in this function.

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

Do you know any hints?

Unknown CA error in Goth · Issue #99 · peburrows/goth · GitHub

Showing Posts 1 to 9

a8t

a8t

At risk of providing hasty advice, I recently encountered this problem in the Papercups project. I fixed it by bumping Hackney. Hackney had a problem on macos that was fixed recently. I hope that helps and doesn’t send you down the wrong path.

Papillon6814

Papillon6814 OP

Thank you for answering!
What did you do on hackney?

a8t

a8t

Sorry, what I meant was that I raised the Hackney version in my mix.exs to the latest version.

Papillon6814

Papillon6814 OP

I’ll try it! thanks!

Papillon6814

Papillon6814 OP

Hello.
An error is not occurred by goth. But a new error came…

map: %{
"reason" => %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'}}
 },
"result" => false
}

Does anyone know of this error?

csokun

csokun

rlopzc

rlopzc

Hello, I had the same issue and is a hackney error with the certificates it uses

The fix:
mix deps.update certifi

https://github.com/certifi/erlang-certifi/issues/46#issuecomment-817872850

tangui

tangui

Are you sure you’ve not erased all other default ssl options, making it vulnerable? See also: Setting versions per example disables ssl validation · Issue #381 · edgurgel/httpoison · GitHub

BarWachtel

BarWachtel

Was having the same issue, this resolved it - thanks!

— All posts loaded —

Where Next? Top

Trending in Questions Top

katta
I having some trouble figuring out if I have set myself too strict of standards for my production server. Currently I can handle 75% of r...
New
peck
Hi everyone. My team and I have been working on a fairly modest app based around video streaming and chat, but we’ve landed a customer t...
New
achenet
Hello, I’m trying to build a basic Phoenix web-app, and I’d like to use Tailwind. However, when I launch mix phx.server, I get an error...
New
bradley
I really like the adapter patterns that ecto, nebulex, waffle, etc. use and would love find something similar for a key management servic...
New
unaware8150
Hello folks! So at work, we are seeing some situations where we have to define some “fixed” strings that are used across the codebase in...
New
Alvinkariuki
How Can I Optimise Compile Time Dependencies I have been building an elixir application for about 2 years now. Many modules and files ha...
New
Cxx-mlr
I’m working on a small exercise involving update_in/3, and I came up with this solution: data = %{ name: "Periodic Table", category:...
New

Other Trending Topics Top

budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
budgie
I love Elixir. It’s one of 2 programming languages I’ve ever fallen in love with. But I don’t use it anymore. Serverless was the promis...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews