Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle bad gateway at pending transactions fetcher #3731

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

vbaranov
Copy link
Member

@vbaranov vbaranov commented Mar 22, 2021

Motivation

2021-03-21T20:59:55.941 fetcher=pending_transaction [error] Task #PID<0.13429.13> started from Indexer.Fetcher.PendingTransaction terminating
** (CaseClauseError) no case clause matching: {:error, {:bad_gateway, "https://xdai-archive-df.xdaichain.com"}}
(indexer 0.1.0) lib/indexer/fetcher/pending_transaction.ex:120: Indexer.Fetcher.PendingTransaction.task/1
(elixir 1.11.3) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir 1.11.3) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib 3.14) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Function: #Function<2.24088951/0 in Indexer.Fetcher.PendingTransaction.handle_info/2>
Args: []

Changelog

Handle {:error, {:bad_gateway, _}} response in pending transactions fetcher

Checklist for your Pull Request (PR)

@coveralls
Copy link

coveralls commented Mar 22, 2021

Pull Request Test Coverage Report for Build 444f2c7451962f0da5989398fceb7bc1b2585f1d-PR-3731

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.4%) to 64.641%

Totals Coverage Status
Change from base Build b3dd8a8543b2120f9df1e47a6a025afac8ae5883: 0.4%
Covered Lines: 2117
Relevant Lines: 3275

💛 - Coveralls

@vbaranov vbaranov merged commit 595f2f1 into master Mar 22, 2021
@vbaranov vbaranov deleted the vb-pending-txs-bad-gateway branch March 22, 2021 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants