scaffold-eth-challenges icon indicating copy to clipboard operation
scaffold-eth-challenges copied to clipboard

Unhandled Rejection (Error): missing response

Open andresberejnoi opened this issue 2 years ago • 6 comments

Hello, I recently followed the steps on this repository to run the Ethereum app for the NFT challenge. My problem comes after I run the command yarn start. From the terminal, there is no error message, and the localhost page GUI loads successfully. However, after about 5 seconds, it crashes and shows me the following error: Ethereum App Error screenshot

Even after the error, the terminal does not show anything wrong, but if I run yarn deploy from another window, it fails because it cannot connect to the network localhost.

It is worth noting that I run this code successfully just about 1 or two weeks ago. I did not change anything. I simply ran the same commands. I'm using Ubuntu 20.04 and Firefox. Additionally, I am not very familiar with internet communication protocols, which seem to be the problem here. Is there a simple thing that I should pay attention to? It is confusing to me because this was working before and now it is not. Thanks for the help in advance.

andresberejnoi avatar Jan 25 '22 14:01 andresberejnoi

I am wondering if you are having conflicts with Ubuntu Yarn and yarn 🤔 try uninstalling the Ubuntu Yarn if it is installed and try again. @andresberejnoi

codenamejason avatar Jan 29 '22 16:01 codenamejason

I am wondering if you are having conflicts with Ubuntu Yarn and yarn 🤔 try uninstalling the Ubuntu Yarn if it is installed and try again. @andresberejnoi

Thank you, I'll keep exploring that. I did uninstall Ubuntu yarn before. I followed the instructions from the readme on installing yarn with node js.

It was originally working and then it stopped. I haven't changed anything in my system that I'm aware of. Maybe some automatic Ubuntu update could have messed with my nodeJS yarn installation?

andresberejnoi avatar Jan 29 '22 17:01 andresberejnoi

I used to have similar issues with Windows, I now have a Mac. I am going to turn this into a discussion and see if we cant get some other input. Post the deploy script if you can.

codenamejason avatar Jan 29 '22 18:01 codenamejason

Did you update the infura id in constants.js by chance? @andresberejnoi

codenamejason avatar Jan 29 '22 18:01 codenamejason

Did you update the infura id in constants.js by chance? @andresberejnoi

Sorry for the late reply. I believe I did not change that. The only steps I took are the ones listed in the README file. My only guess is that maybe some Ubuntu update somehow messed up with my yarn or node installation between the time I run it for the first time and my last attempt.

I think I will try to reinstall the whole thing and see what happens. I might also try on Windows if I can't get the server to start.

andresberejnoi avatar Feb 02 '22 13:02 andresberejnoi

I was experiencing this error too. The issue was that the correct order is to yarn chain before yarn start. So when the frontend starts if finds the node already running.

HUHAOQIAN avatar Aug 07 '22 04:08 HUHAOQIAN