entone

entone OP

Are you getting an error while using it?

0
Post #11
odix67

odix67

no, I’m not able to compile:

❯ mix test
Compiling 21 files (.ex)

== Compilation error in file lib/ex_ari/stasis.ex ==
** (ArgumentError) `:only` specified keys ([:type]) that are not defined in defstruct: [:connected, :status, :app, :url, :channel_supervisor, :reconnection_attempts]
    (jason 1.4.1) lib/encoder.ex:147: Jason.Encoder.Any.fields_to_encode/2
    (jason 1.4.1) expanding macro: Jason.Encoder.Any.__deriving__/3
    lib/ex_ari/stasis.ex:101: ARI.Stasis.State (module)

it seems to be related to updated dependencies, jason might be more strict now

0
Post #12
entone

entone OP

Ok, I’ve got a PR open here remove unused key from stasis state Jason encoder by entone · Pull Request #3 · entropealabs/ex_ari · GitHub

Would you mind testing it out? I don’t really have the bandwidth to update and test everything right now.

0
Post #13
odix67

odix67

ok, thx, I’ll give it a try, but give me a few days, a little bit busy at the moment …

0
Post #14
— All posts loaded —