# 编程日记：解决代理问题（2022-09-01）

By [Corror](https://paragraph.com/@corror) · 2022-09-01

---

### 解决问题

针对两天前出现的编程，我在查阅一篇 [github 回答](https://github.com/NomicFoundation/hardhat/issues/2348#issuecomment-1125831361)后，发现是 IP 地址没有选对，可以更改为以下内容：

    104.22.14.57  api-rinkeby.etherscan.io
    

然后运行命令行：

    npx hardhat verify 0x2A3a6551B251C199De4748F545799c999b291C71 --network rinkeby
    

只不过更改过后，报错会变为以下内容：

    Error in plugin @nomiclabs/hardhat-etherscan: Failed to send contract verification request.
    Endpoint URL: https://api-rinkeby.etherscan.io/api 
    Reason: read ECONNRESET
    

在上网查询后，我发现有人遇见了和我相同的问题：

*   Github - [Build fails behind China Great Firewall / GFW with ECONNRESET/ETIMEDOUT error](https://github.com/nativefier/nativefier/issues/500)
    

我尝试将自己的问题，在 Github 上[提了出来](https://github.com/smartcontractkit/full-blockchain-solidity-course-js/discussions/2247)，之后可能会尝试跳过对于合约的验证，继续学习新的内容。

* * *

在根据大家的回答过后，我发现可能是我的网络设置出现了问题，在某些时候自己无法连接网络。

比如：

在自学编程的那段时间，自己可以安装 scoop，但是现在哪怕开了梯子也不行。所以，我推测这不是 WSL-2 无法使用代理的问题，因为 **Windows 虽然可以通过使用代理来翻墙，但是它无法通过使用 Command 来翻墙**。

具体表现在两个地方：

1.  在 Windows 中 推送远程 Github 仓库时，Github 没有响应。
    
2.  在 Windows 中使用 ism 命令安装 scoop 时，会提示无法连接到 Github，详见[这个回答](https://tps://github.com/neolee/pilot/issues/184#issuecomment-546932567)。
    
3.  在 Windows 中登录 ShadowSocks 代理时，会提示连接超时，该问题已经咨询梯子的客服。
    

如果梯子的客服能够帮助我解决这个问题，那么我相信自己面临的无法 Verify 的问题也就解决了。

---

*Originally published on [Corror](https://paragraph.com/@corror/2022-09-01)*
