Closed ConnorRigby closed 4 months ago
upon digging further, this seems to be an issue w/ the URI encoding
MINT_OPTS: {%URI{
scheme: nil,
authority: "nerveshub.fly.dev:443",
userinfo: nil,
host: "nerveshub.fly.dev",
port: 443,
path: "/api/users/login",
query: nil,
fragment: nil
},
IO.inspect({uri, opts}, label: "MINT_OPTS")
with {:ok, conn} <-
HTTP.connect(String.to_atom(uri.scheme), uri.host, uri.port, Enum.into(opts, [])) do
# If there were redirects, and passed `closed_conn: false`, we need to close opened connections to these intermediate hosts.
{:ok, conn, Map.put(opts, :close_conn, true)}
end
adding scheme: "https",
to the :nerves_hub_cli
config.exs entry solved this.
This happens when using the official docs here