From 7faa2aa8c489e152f43cdb9ea53a71a58ace52da Mon Sep 17 00:00:00 2001 From: Viktor Baranov Date: Sat, 4 Dec 2021 13:08:03 +0400 Subject: [PATCH] Handle :econnrefused in pending transactions fetcher --- CHANGELOG.md | 1 + apps/indexer/lib/indexer/fetcher/pending_transaction.ex | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed5636d402..d3d0968625 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Fixes - [#4977](https://github.com/blockscout/blockscout/pull/4977) - Export token transfers on address: include transfers on contract itself +- [#4976](https://github.com/blockscout/blockscout/pull/4976) - Handle :econnrefused in pending transactions fetcher - [#4965](https://github.com/blockscout/blockscout/pull/4965) - Fix search field appearance on medium size screens - [#4945](https://github.com/blockscout/blockscout/pull/4945) - Fix `Verify & Publish` button link - [#4888](https://github.com/blockscout/blockscout/pull/4888) - Fix fetch_top_tokens method: add nulls last for token holders desc order diff --git a/apps/indexer/lib/indexer/fetcher/pending_transaction.ex b/apps/indexer/lib/indexer/fetcher/pending_transaction.ex index 528be138ac..a5da4b96fb 100644 --- a/apps/indexer/lib/indexer/fetcher/pending_transaction.ex +++ b/apps/indexer/lib/indexer/fetcher/pending_transaction.ex @@ -141,6 +141,11 @@ defmodule Indexer.Fetcher.PendingTransaction do :ok + {:error, :econnrefused} -> + Logger.error("connection_refused") + + :ok + {:error, {:bad_gateway, _}} -> Logger.error("bad_gateway")