Getting :gun_error {:stream_error, :protocol_error, :"Stream reset by server."}

My guess would be TLS handshake failure because your cacerts don’t match. Where are you getting /app/priv/ssl/http/* from on the server?