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

Improve attestation service init error message when the node is not synced #2344

Closed
wants to merge 1 commit into from

Conversation

szym
Copy link

@szym szym commented Dec 29, 2019

Description

The error received while the node sync was under way but not yet complete:

2019-12-27T07:29:49.020Z attestation-service[61] ERROR: Initializing Kit failed, are you running your node and specified it with the "CELO_PROVIDER" env var?. It' currently set as http://localhost:8545
2019-12-27T07:29:49.034Z attestation-service[61] ERROR: Node is not syncing

When the node is still syncing, web3.eth.isSyncing() will return false. In that case, telling the operator that the node is "not syncing" is misleading, so let's use a more accurate error message.

Tested

Error message string. Tested manually.

Other changes

None.

Related issues

None.

Backwards compatibility

Fully backwards compatible, unless some tool is actually parsing the error message.

When the node is still syncing, `web3.eth.isSyncing()` will return `false`. Telling the operator that the node is "not syncing" is misleading, so let's use a more accurate error message.
@szym szym changed the title Improve init error message when the node is not synced Improve attestation service init error message when the node is not synced Dec 29, 2019
@codecov
Copy link

codecov bot commented Dec 29, 2019

Codecov Report

Merging #2344 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #2344    +/-   ##
========================================
  Coverage   74.55%   74.55%            
========================================
  Files         278      278            
  Lines        7777     7777            
  Branches      707      991   +284     
========================================
  Hits         5798     5798            
  Misses       1868     1868            
  Partials      111      111
Flag Coverage Δ
#mobile 74.55% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce8d150...babb7e4. Read the comment docs.

@szym
Copy link
Author

szym commented Jan 14, 2020

Obsoleted by #2372

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.

1 participant