Daltonic / dapplottery

DappLottery is a decentralized application built on web3 technologies that allows users to participate in a fair and transparent lottery system using NextJs, Solidity, and CometChat.
https://dapplottery.vercel.app
36 stars 27 forks source link

Error while running code #2

Open Himanshu-Bhalla-2002 opened 1 year ago

Himanshu-Bhalla-2002 commented 1 year ago

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)

image

I am getting the above error.

joshuasoftdev commented 1 year ago

you ever fix this issue? i have the same problem

adaltonreis commented 1 year ago

Hello everyone! I am having the same issue. Any suggestions?

I appreciate it!

AndresFJG commented 1 year ago

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