skip to Main Content

when I run my backend files, I get the cannot get / error. I don’t know what the source of the error is. As console output works normally, I tried it on localhost and tried it on different VDS’s, but the result did not change. What should I do?

I don’t know the source of the error so I couldn’t try anything. But I tried to run it in different vds and got the same result again

2

Answers


  1. Chosen as BEST ANSWER

    enter image description here

    My files are like this, I can post the code in one of them if you want.


  2. Usually the error means that the route/endpoint is not defined. For example you trying http://localhost/books and get "Cannot get" error means that there is no /books route defined in your nodejs / express app.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search