Open Himanshu-Bhalla-2002 opened 1 year ago
you ever fix this issue? i have the same problem
Hello everyone! I am having the same issue. Any suggestions?
I appreciate it!
To solve this error you must go to the services folder then to the blockchain.srr.js file and in const provider = new ethers.providers.JsonRpcProvider('http://localhost:8545') change the "'http:// localhost : 8545'" for "http://127.0.0.1:8545/" and that's it
event - compiled client and server successfully in 1025 ms (482 modules) error - Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2) at Logger.makeError (/Users/himanshubhalla/Desktop/meet/dappLottery/node_modules/@ethersproject/logger/lib/index.js:238:21) at Logger.throwError (/Users/himanshubhalla/Desktop/meet/dappLottery/node_modules/@ethersproject/logger/lib/index.js:247:20) at JsonRpcProvider. (/Users/himanshubhalla/Desktop/meet/dappLottery/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:609:54)
at step (/Users/himanshubhalla/Desktop/meet/dappLottery/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
at Object.throw (/Users/himanshubhalla/Desktop/meet/dappLottery/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
at rejected (/Users/himanshubhalla/Desktop/meet/dappLottery/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
reason: 'could not detect network',
code: 'NETWORK_ERROR',
event: 'noNetwork',
page: '/'
}
wait - compiling /_error (client and server)...
event - compiled client and server successfully in 226 ms (483 modules)
I am getting the above error.