Closed jjcarstens closed 3 years ago
FYI, looks like the tls_opts
is invalid for some reason. If I change that to transport_opts
, then looks like my connection can succeed.
Ah, so it looks like this is using :gun 1.3.3
which defines :gun.opts()
type to use the :transport_opts
key - see https://ninenines.eu/docs/en/gun/1.3/manual/gun/#_opts
However, I was referencing :gun 2.0
docs, which expects :tls_opts
- See https://ninenines.eu/docs/en/gun/2.0/manual/gun/#_opts
I guess I'll leave this issue for posterity and let you decide what to do with it.
:wave: hello!
I guess I can't say I haven't seen a result other than {:ok, conn}
now :grin:
IMHO the gun docs are a bit cryptic in that (1) they point to v2 by default, which is still in release-candidate phase, (2) the types section is in alphabetical order, which kinda hides the t:gun:opts/0
type behind the others, and (3) you can't permalink to each type
I'll close this issue for now and noodle on refacting that initial connection to handle a mismatch more gracefully (it'll probably end up as an invocation of c:Slipstream.handle_disconnect/2
)
thanks for opening up this issue! :slightly_smiling_face:
According to this comment , I'm supposed to open an issue 👐
I'm trying to experiment with Slipstream to connect to a server via Client-side SSL (This is for connecting Nerves device to nerves-hub.org BTW) and that seems to be causing an error here. I might not have gun options right as it is new to me..
Happy to help test and contribute as needed.
Setup
Produces this error...
``` 12:12:02.649 [error] GenServer #PID<0.490.0> terminating ** (MatchError) no match of right hand side value: {:error, {:options, {:tls_opts, [cacerts: [<