GenStateMachine terminating after upgrading to 1.8

Hi, I am having the same problems but this seemingly has nothing to do with Docker. This happened after upgrading from Elixir 1.7 to 1.8 a few days ago.

Apr 04 10:41:50 yorck-signage-1 vista_api[24692]: 10:41:50.240 [error] GenStateMachine #PID<0.1895.0> terminating
Apr 04 10:41:50 yorck-signage-1 vista_api[24692]: ** (exit) {:shutdown, :sender_died, :killed}
Apr 04 10:41:50 yorck-signage-1 vista_api[24692]:     (stdlib) gen_statem.erl:1158: :gen_statem.loop_event_result/9
Apr 04 10:41:50 yorck-signage-1 vista_api[24692]:     (ssl) tls_connection.erl:133: :tls_connection.init/1
Apr 04 10:41:50 yorck-signage-1 vista_api[24692]:     (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Apr 04 10:41:55 yorck-signage-1 systemd[1]: Stopped Digital Signage Displays.
Apr 04 10:42:00 yorck-signage-1 systemd[1]: Started Digital Signage Displays.

Right now, the only solution for me is going back to Elixir 1.7. The solution in Workaround for Docker with Erlang/OTP 21.3 is also just using a Docker image with Elixir 1.7 (istead of :latest).

This also has apparently nothing to so with Elixir but with Erlang. This happens occasionally when performing HTTP requests over TLS (some requests to external APIs). I am using hackney as client.

Interestingly, :httpc seems to work for me (but I cannot use it since it doesn’t play well with {} characters in the URL which is needed to talk to some Microsoft Graph API :angry:)