matter-labs / zksync-web-era-docs

zkSync Era Documentation
https://docs.zksync.io/
MIT License
982 stars 814 forks source link

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

Closed GalaxySciTech closed 1 year ago

GalaxySciTech commented 1 year ago

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 commented 1 year ago
// 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

kailash-manasarovar commented 1 year ago

Closing as reported solved.