You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting this error(In browser):
{"errors":{"message":"Not Found","error":{"status":404}}}
And also:
[email protected] dev /Users/sachindevatar/node-express/node-express-realworld-example-app
nodemon ./app.js
[nodemon] 1.19.4
[nodemon] to restart at any time, enter rs
[nodemon] watching dir(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node ./app.js
Listening on port 3000
Mongoose: users.ensureIndex({ username: 1 }) { unique: true, background: true }
Mongoose: articles.ensureIndex({ slug: 1 }) { unique: true, background: true }
Mongoose: users.ensureIndex({ email: 1 }) { unique: true, background: true }
Error: Not Found
at /Users/sachindevatar/node-express/node-express-realworld-example-app/app.js:49:13
at Layer.handle [as handle_request] (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:312:13)
at /Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:280:7
at Function.process_params (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:330:12)
at next (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:271:10)
at /Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:618:15
at next (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:256:14)
at Function.handle (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:176:3)
at router (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:46:12)
at Layer.handle [as handle_request] (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:312:13)
at /Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:280:7
at Function.process_params (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:330:12)
at next (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:271:10)
at Layer.handle [as handle_request] (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/layer.js:91:12)
GET / 404 6.927 ms - 57
The text was updated successfully, but these errors were encountered:
This project is just API implemented in Node.js, so there is no Front-End by default.
I guess you are accessing URI / which is not handled by this application and that's why you get 404 error.
Try to access as an example URI /api/articles and if you see output {"articles":[],"articlesCount":0} then everything works correctly.
You can check all APIs available in routes folder of this project.
I am getting this error(In browser):
{"errors":{"message":"Not Found","error":{"status":404}}}
And also:
[nodemon] 1.19.4
[nodemon] to restart at any time, enter
rs
[nodemon] watching dir(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting
node ./app.js
Listening on port 3000
Mongoose: users.ensureIndex({ username: 1 }) { unique: true, background: true }
Mongoose: articles.ensureIndex({ slug: 1 }) { unique: true, background: true }
Mongoose: users.ensureIndex({ email: 1 }) { unique: true, background: true }
Error: Not Found
at /Users/sachindevatar/node-express/node-express-realworld-example-app/app.js:49:13
at Layer.handle [as handle_request] (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:312:13)
at /Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:280:7
at Function.process_params (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:330:12)
at next (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:271:10)
at /Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:618:15
at next (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:256:14)
at Function.handle (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:176:3)
at router (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:46:12)
at Layer.handle [as handle_request] (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:312:13)
at /Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:280:7
at Function.process_params (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:330:12)
at next (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/index.js:271:10)
at Layer.handle [as handle_request] (/Users/sachindevatar/node-express/node-express-realworld-example-app/node_modules/express/lib/router/layer.js:91:12)
GET / 404 6.927 ms - 57
The text was updated successfully, but these errors were encountered: