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
Discussion options

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: 13 comments 70 replies

Comment options

You must be logged in to vote
5 replies
@RoboCrypter
Comment options

@eiyen
Comment options

@RoboCrypter
Comment options

@eiyen
Comment options

@ybnx
Comment options

Comment options

You must be logged in to vote
2 replies
@eiyen
Comment options

@ybnx
Comment options

Comment options

You must be logged in to vote
2 replies
@eiyen
Comment options

@ybnx
Comment options

Comment options

You must be logged in to vote
5 replies
@eiyen
Comment options

@alymurtazamemon
Comment options

@alymurtazamemon
Comment options

@eiyen
Comment options

@ybnx
Comment options

Comment options

You must be logged in to vote
3 replies
@eiyen
Comment options

@ybnx
Comment options

@dorvei
Comment options

Comment options

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

@linghuccc
Comment options

@eiyen
Comment options

@zakrad
Comment options

@wjcty
Comment options

Answer selected by eiyen
Comment options

You must be logged in to vote
1 reply
@iceee404
Comment options

Comment options

You must be logged in to vote
1 reply
@chaseSpace
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
33 replies
@vcvvvc
Comment options

@4O4MAGlC1AN
Comment options

@iyim
Comment options

@lxjme
Comment options

@Qinsir7
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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