You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I run hardhat compile, it return the error:
Couldn't download compiler versions list. Please check your connection.
Caused by: Error: Failed to download https://binaries.soliditylang.org/windows-amd64/list.json
but if open this url on broswer, it will download corretly .
it seems that the CloudFront CDN blocked hardhat download but allow broswer.
npx hardhat compile --show-stack-traces
Error HH502: Couldn't download compiler versions list. Please check your connection.
HardhatError: HH502: Couldn't download compiler versions list. Please check your connection.
at CompilerDownloader.downloadCompilersList (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\internal\solidity\compiler\downloader.ts:203:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async CompilerDownloader.getCompilersList (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\internal\solidity\compiler\downloader.ts:162:7)
at async CompilerDownloader._fetchVersionPath (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\internal\solidity\compiler\downloader.ts:258:16)
at async CompilerDownloader._versionExists (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\internal\solidity\compiler\downloader.ts:276:25)
at async CompilerDownloader.getCompilerBuild (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\internal\solidity\compiler\downloader.ts:183:9)
at async CompilerDownloader.isCompilerDownloaded (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\internal\solidity\compiler\downloader.ts:74:27)
at async SimpleTaskDefinition.action (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\builtin-tasks\compile.ts:547:36)
at async Environment._runTaskDefinition (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\internal\core\runtime-environment.ts:219:14)
at async Environment.run (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\internal\core\runtime-environment.ts:131:14)
Caused by: Error: Failed to download https://binaries.soliditylang.org/windows-amd64/list.json - 400 received. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD><BODY>
<H1>400 ERROR</H1>
<H2>The request could not be satisfied.</H2>
<HR noshade size="1px">
Bad request.
We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
<BR clear="all">
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
<BR clear="all">
<HR noshade size="1px">
<PRE>
Generated by cloudfront (CloudFront)
Request ID: 7NjpyqQpVVK5oAUGhWoZxQ7kRP2A6ydRqCpikI3avfE_M7Wf_flsoQ==
</PRE>
<ADDRESS>
</ADDRESS>
</BODY></HTML>
at download (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\internal\util\download.ts:63:9)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async CompilerDownloader.downloadFile [as _download] (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\internal\solidity\compiler\downloader.ts:50:3)
at async CompilerDownloader.downloadCompilersList (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\internal\solidity\compiler\downloader.ts:198:7)
at async CompilerDownloader.getCompilersList (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\internal\solidity\compiler\downloader.ts:162:7)
at async CompilerDownloader._fetchVersionPath (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\internal\solidity\compiler\downloader.ts:258:16)
at async CompilerDownloader._versionExists (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\internal\solidity\compiler\downloader.ts:276:25)
at async CompilerDownloader.getCompilerBuild (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\internal\solidity\compiler\downloader.ts:183:9)
at async CompilerDownloader.isCompilerDownloaded (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\internal\solidity\compiler\downloader.ts:74:27)
at async SimpleTaskDefinition.action (C:\Dev\pack\DAPP\Dao\node_modules\hardhat\src\builtin-tasks\compile.ts:547:36)
The text was updated successfully, but these errors were encountered:
when I run hardhat compile, it return the error:
Couldn't download compiler versions list. Please check your connection.
Caused by: Error: Failed to download
https://binaries.soliditylang.org/windows-amd64/list.json
but if open this url on broswer, it will download corretly .
it seems that the CloudFront CDN blocked hardhat download but allow broswer.
The text was updated successfully, but these errors were encountered: