covalenthq/refiner

Handle Issue on TLS timeouts for BSP event listener

noslav opened this issue · 0 comments

RPC connection issues timeouts for block_specimen_event_listener.ex:120: Refiner.ProofChain.BlockSpecimenEventListener.listen_for_event/2

Apr 24 19:24:46 docker[624755]: refiner      |
Apr 24 19:24:46 docker[624755]: refiner      | ** (FunctionClauseError) no function clause matching in Refiner.RPC.JSONRPC.HTTPAdapter.decode_http_resp/1
Apr 24 19:24:46 docker[624755]: refiner      |
Apr 24 19:24:46 docker[624755]: refiner      |     The following arguments were given to Refiner.RPC.JSONRPC.HTTPAdapter.decode_http_resp/1:
Apr 24 19:24:46 docker[624755]: refiner      |
Apr 24 19:24:46 docker[624755]: refiner      |         # 1
Apr 24 19:24:46 docker[624755]: refiner      |         {:error, %Mint.TransportError{reason: {:tls_alert, {:internal_error, 'TLS client: In state hello received SERVER ALERT: Fatal - Internal Error\n'}}}}
Apr 24 19:24:46 docker[624755]: refiner      |
Apr 24 19:24:46 docker[624755]: refiner      |     Attempted function clauses (showing 10 out of 11):
Apr 24 19:24:46 docker[624755]: refiner      |
Apr 24 19:24:46 docker[624755]: refiner      |         def decode_http_resp(-{:ok, %{status: http_resp_code, body: http_resp_body}}-) when -http_resp_code >= 200- and -http_resp_code < 300-
Apr 24 19:24:46 docker[624755]: refiner      |         def decode_http_resp(-{:ok, %{status: http_resp_code, body: http_resp_body}}-)
Apr 24 19:24:46 docker[624755]: refiner      |         def decode_http_resp(-{:error, %Mint.TransportError{reason: :timeout}}-)
Apr 24 19:24:46 docker[624755]: refiner      |         def decode_http_resp(-{:error, %Finch.Error{reason: :normal}}-)
Apr 24 19:24:46 docker[624755]: refiner      |         def decode_http_resp(-{:error, %Mint.TransportError{reason: :closed}}-)
Apr 24 19:24:46 docker[624755]: refiner      |         def decode_http_resp(-{:error, %Finch.Error{reason: {:stop, {:goaway, _, _, _}, _}}}-)
Apr 24 19:24:46 docker[624755]: refiner      |         def decode_http_resp(-{:error, %Finch.Error{reason: {:stream_error, :internal_error, _}}}-)
Apr 24 19:24:46 docker[624755]: refiner      |         def decode_http_resp(-{:error, %Finch.Error{reason: :closed}}-)
Apr 24 19:24:46 docker[624755]: refiner      |         def decode_http_resp(-{:error, %Finch.Error{reason: {:closed, _}}}-)
Apr 24 19:24:46 docker[624755]: refiner      |         def decode_http_resp(-{:error, %Finch.Error{} = e}-)
Apr 24 19:24:46 docker[624755]: refiner      |         ...
Apr 24 19:24:46 docker[624755]: refiner      |         (1 clause not shown)
Apr 24 19:24:46 docker[624755]: refiner      |
Apr 24 19:24:46 docker[624755]: refiner      |     (refiner 0.5.0) lib/refiner/rpc/jsonrpc/http_adapter.ex:119: Refiner.RPC.JSONRPC.HTTPAdapter.decode_http_resp/1
Apr 24 19:24:46 docker[624755]: refiner      |     (refiner 0.5.0) lib/refiner/rpc/jsonrpc/http_adapter.ex:69: Refiner.RPC.JSONRPC.HTTPAdapter.submit_and_decode_http_req_with_retry/2
Apr 24 19:24:46 docker[624755]: refiner      |     (refiner 0.5.0) lib/refiner/rpc/jsonrpc/http_adapter.ex:47: Refiner.RPC.JSONRPC.HTTPAdapter.call/5
Apr 24 19:24:46 docker[624755]: refiner      |     (refiner 0.5.0) lib/refiner/rpc/ethereum_client/ethereum_client.ex:89: Refiner.Network.EthereumMainnet.call/3
Apr 24 19:24:46 docker[624755]: refiner      |     (refiner 0.5.0) lib/refiner/proof_chain/block_specimen_event_listener.ex:120: Refiner.ProofChain.BlockSpecimenEventListener.listen_for_event/2
Apr 24 19:24:46 docker[624755]: refiner      |     (stdlib 3.17.2.2) erl_eval.erl:685: :erl_eval.do_apply/6
Apr 24 19:24:46 docker[624755]: refiner      |     (elixir 1.14.3) lib/code.ex:425: Code.validated_eval_string/3
Apr 24 19:24:46 docker[624755]: refiner      |     (elixir 1.14.3) lib/enum.ex:975: Enum."-each/2-lists^foreach/1-0-"/2
Apr 24 19:24:46 docker[624755]: refiner      |     (mix 1.14.3) lib/mix/tasks/run.ex:140: Mix.Tasks.Run.run/5
Apr 24 19:24:46 docker[624755]: refiner      |     (mix 1.14.3) lib/mix/tasks/run.ex:84: Mix.Tasks.Run.run/1
Apr 24 19:24:46 docker[624755]: refiner      |     (mix 1.14.3) lib/mix/task.ex:421: anonymous fn/3 in Mix.Task.run_task/4
Apr 24 19:24:46 docker[624755]: refiner      |     (mix 1.14.3) lib/mix/cli.ex:84: Mix.CLI.run_task/2
Apr 24 19:24:47 docker[624755]: refiner exited with code 0