Node/Express "cannot GET" error

I’m currently working on this FCC challenge:

However when I run the code, I get the error “Cannot GET /” instead of the main html page.

I’ve tried copy/pasting the “completed project” code given by FCC, but I’m still running into the same error.

I believe the error is because there is some issue with connecting to the database, preventing it from getting to the “app.route” section. I put some console logs to track the progress of it loading, and it always stops before it gets there.

Link: https://replit.com/@sssmsm/boilerplate-advancednode#server.js

Any help is greatly appreciated! :slight_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.