I was using Replit to progress with Basic Node Challenges, sadly Replit changed it’s settings as far as I know. Therefore, MANY features don’t work anymore or aren’t accepted from FCC validator.
I would love to know some alternative or a way to keep doing these challenges and keep learning. Right now I’ve spent 2hours and haven’t found an alternative site that FCC site likes.
It doesn’t accept .env files for example, and doesn’t accept the new version of it you can find on Replit. Doesn’t recognize the challenge “Implement a Root-Level Request Logger Middleware” when everything I’ve done seems fine
I’d start adding console.log statements inside of all of your callback functions to see what’s happening. It’s not immediately obvious to me from seeing your code what is happening.
/json request
Error: Can't set headers after they are sent.
at SendStream.headersAlreadySent (/home/runner/boilerplate-express-1/node_modules/send/index.js:386:13)
at SendStream.send (/home/runner/boilerplate-express-1/node_modules/send/index.js:613:10)
at onstat (/home/runner/boilerplate-express-1/node_modules/send/index.js:725:10)
at FSReqCallback.oncomplete (node:fs:199:5)
*
/json request
Error: Can't set headers after they are sent.
at SendStream.headersAlreadySent (/home/runner/boilerplate-express-1/node_modules/send/index.js:386:13)
at SendStream.send (/home/runner/boilerplate-express-1/node_modules/send/index.js:613:10)
at onstat (/home/runner/boilerplate-express-1/node_modules/send/index.js:725:10)
at FSReqCallback.oncomplete (node:fs:199:5)
That’s how I console.log the functions and how I wrote them:
I made a PR but I’m not 100% sure if it is a fix or not. I’m hoping it is.
For me, it just won’t install the packages when I click the Run button but for others, it seems to be installing an old version of the testing package.
How did you install the packages? Did you run npm install from the shell or did it automatically install the packages?
oh yeah they got installed automatically but I guess they ran an old version for some reasons
I’m just starting using these kind of programs so I’m still getting used to it