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

Failed to fetch safe or finalized hash from etherscan #13647

Open
1 task done
ethever opened this issue Jan 4, 2025 · 1 comment
Open
1 task done

Failed to fetch safe or finalized hash from etherscan #13647

ethever opened this issue Jan 4, 2025 · 1 comment
Labels
C-bug An unexpected or incorrect behavior S-needs-triage This issue needs to be labelled

Comments

@ethever
Copy link

ethever commented Jan 4, 2025

Describe the bug

Here is the error:

2025-01-04T06:57:04.150726Z  WARN failed to fetch a block from Etherscan err=error decoding response body
2025-01-04T06:57:04.162428Z  WARN failed to fetch safe or finalized hash from etherscan safe_block_hash=Err(error decoding response body

Caused by:
    expected value at line 1 column 1

Location:
    /root/projects/reth/crates/consensus/debug-client/src/providers/etherscan.rs:35:45) finalized_block_hash=Err(error decoding response body

Caused by:
    expected value at line 1 column 1

Location:
    /root/projects/reth/crates/consensus/debug-client/src/providers/etherscan.rs:35:45)

Here is my reth version:

root@ser7:~/projects/run_reth# reth --version
reth Version: 1.0.8
Commit SHA: 41455dfcdd1310bdaedcbc55054cdb1ef01bf639
Build Timestamp: 2024-10-06T07:12:32.295587631Z
Build Features: jemalloc
Build Profile: release

This error also exists:

root@ser7:~/projects/run_reth# reth --version
reth Version: 1.0.8
Commit SHA: 41455dfcdd1310bdaedcbc55054cdb1ef01bf639
Build Timestamp: 2024-10-06T07:12:32.295587631Z
Build Features: jemalloc
Build Profile: release

Steps to reproduce

  1. Clone the repo in this commit hash: 41455df
  2. Build reth using this command: RUSTFLAGS="-C target-cpu=native" cargo build --profile maxperf --features jemalloc,asm-keccak
  3. Run reth reth node --authrpc.jwtsecret /secrets/jwt.hex --authrpc.addr 127.0.0.1 --authrpc.port 8551 --debug.etherscan.
  4. Note: I already set etherscan key to ETHERSCAN_API_KEY env variable;

Node logs


Platform(s)

Linux (x86)

Container Type

Not running in a container

What version/commit are you on?

41455df

What database version are you on?

root@ser7:~/projects/reth#  reth db version
2025-01-04T07:02:44.677074Z  INFO Initialized tracing, debug log directory: /root/.cache/reth/logs/mainnet
Current database version: 2
Local database version: 2

Which chain / network are you on?

mainnet

What type of node are you running?

Pruned with custom reth.toml config

What prune config do you use, if any?

root@ser7:~/projects/reth# cat ~/.local/share/reth/mainnet/reth.toml
[stages.headers]
downloader_max_concurrent_requests = 100
downloader_min_concurrent_requests = 5
downloader_max_buffered_responses = 100
downloader_request_limit = 1000
commit_threshold = 10000

[stages.bodies]
downloader_request_limit = 500
downloader_stream_batch_size = 10000
downloader_max_buffered_blocks_size_bytes = 2147483648
downloader_min_concurrent_requests = 5
downloader_max_concurrent_requests = 100

[stages.sender_recovery]
commit_threshold = 5000000

[stages.execution]
max_blocks = 500000
max_changes = 5000000
max_cumulative_gas = 1500000000000
max_duration = "10m"

[stages.prune]
commit_threshold = 1000000

[stages.account_hashing]
clean_threshold = 500000
commit_threshold = 100000

[stages.storage_hashing]
clean_threshold = 500000
commit_threshold = 100000

[stages.merkle]
clean_threshold = 10000

[stages.transaction_lookup]
chunk_size = 5000000

[stages.index_account_history]
commit_threshold = 100000

[stages.index_storage_history]
commit_threshold = 100000

[stages.etl]
file_size = 524288000

[prune]
block_interval = 5

[prune.segments]
sender_recovery = "full"

[prune.segments.receipts]
before = 11052984

[prune.segments.account_history]
distance = 10064

[prune.segments.storage_history]
distance = 10064

[prune.segments.receipts_log_filter.0x00000000219ab540356cbb839cbe05303d7705fa]
before = 11052984

[peers]
refill_slots_interval = "5s"
trusted_nodes = []
trusted_nodes_only = false
max_backoff_count = 5
ban_duration = "12h"

[peers.connection_info]
max_outbound = 100
max_inbound = 30
max_concurrent_outbound_dials = 15

[peers.reputation_weights]
bad_message = -16384
bad_block = -16384
bad_transactions = -16384
already_seen_transactions = 0
timeout = -4096
bad_protocol = -2147483648
failed_to_connect = -25600
dropped = -4096
bad_announcement = -1024

[peers.backoff_durations]
low = "30s"
medium = "3m"
high = "15m"
max = "1h"

[sessions]
session_command_buffer = 32
session_event_buffer = 260

[sessions.limits]

[sessions.initial_internal_request_timeout]
secs = 20
nanos = 0

[sessions.protocol_breach_request_timeout]
secs = 120
nanos = 0

[sessions.pending_session_timeout]
secs = 20
nanos = 0

If you've built Reth from source, provide the full command you used

No response

Code of Conduct

  • I agree to follow the Code of Conduct
@ethever ethever added C-bug An unexpected or incorrect behavior S-needs-triage This issue needs to be labelled labels Jan 4, 2025
@mattsse
Copy link
Collaborator

mattsse commented Jan 4, 2025

afaik etherscan api had some issues in the last few days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug An unexpected or incorrect behavior S-needs-triage This issue needs to be labelled
Projects
Status: Todo
Development

No branches or pull requests

2 participants