Skip to content

Lesson 6: Hardhat failed to send contract verification request and returned ECONNRESET 如何通过代理解决 Etherscan 验证失败的问题? #2247

Answered by levblanc
eiyen asked this question in Q&A

You must be logged in to vote

Hi,

I ran into similar issue, blocked me for a few days and following is my workaround.

Error messages I've met

# 1
NomicLabsHardhatPluginError: Failed to send contract verification request.
Endpoint URL: https://api-rinkeby.etherscan.io/api
Reason: Connect Timeout Error

# 2
NomicLabsHardhatPluginError: Failed to send contract verification request.
Endpoint URL: https://api-rinkeby.etherscan.io/api
Reason: Client network socket disconnected before secure TLS connection was established

My workaround

Just like you, my first suspicion was on the GFW and I set up my hosts file like you did.
ping success with and without VPN, which means there is NO connection issue between our computers and …

Replies: 15 comments 82 replies

You must be logged in to vote
5 replies
@RoboCrypter

@eiyen

@RoboCrypter

@eiyen

@ybnx

You must be logged in to vote
2 replies
@eiyen

@ybnx

You must be logged in to vote
2 replies
@eiyen

@ybnx

You must be logged in to vote
5 replies
@eiyen

@alymurtazamemon

@alymurtazamemon

@eiyen

@ybnx

You must be logged in to vote
3 replies
@eiyen

@ybnx

@dorvei

You must be logged in to vote
18 replies
@Bruce-shuai

@linghuccc

@eiyen

@zakrad

@wjcty

Answer selected by eiyen

You must be logged in to vote
1 reply
@iceee404

You must be logged in to vote
1 reply
@chaseSpace

You must be logged in to vote
0 replies

You must be logged in to vote
45 replies
@yeyuxiu

@JackAHao

@golds3

@ShangyiAlone

@git0521

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet