zksync-web-era-docs icon indicating copy to clipboard operation
zksync-web-era-docs copied to clipboard

Downloading zksolc 1.3.5 Error in plugin @matterlabs/hardhat-zksync-solc: connect ECONNREFUSED 0.0.0.0:443

Open GalaxySciTech opened this issue 2 years ago • 1 comments

Downloading zksolc 1.3.5 Error in plugin @matterlabs/hardhat-zksync-solc: connect ECONNREFUSED 0.0.0.0:443

image

how to solve this

GalaxySciTech avatar Mar 26 '23 10:03 GalaxySciTech

// set proxy
const proxyUrl = 'http://127.0.0.1:1087';   // change to yours, With the global proxy enabled, change the proxyUrl to your own proxy link. The port may be different for each client.
const { ProxyAgent, setGlobalDispatcher } = require("undici");
const proxyAgent = new ProxyAgent(proxyUrl);
setGlobalDispatcher(proxyAgent);

sovled

GalaxySciTech avatar Mar 26 '23 10:03 GalaxySciTech

Closing as reported solved.

kailash-manasarovar avatar Mar 30 '23 08:03 kailash-manasarovar