When I run a post in my repl I get a message in web view cannot GET, but if I run it it a new tab it works OK?


Replit Profile: https://replit.com/@Petroman

Hey @Petroman welcome to the forums!

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code:

Hey @Petroman!

It’s great to hear that you’ve fixed your problem, but please provide an explanation to how you did, so that other people who have the same problem know the solution.

I have not fixed the problem. I get the message in the browser: Cannot GET /api/users, but the username does get posted to the database
When I run the repl in a new tab it works as expected: The new post overwrites the index.html page, and the new username is posted to the database and entered into the database

If you have not solved the problem, could you remove the Solution you put on the post above?
cc: @QwertyQwerty88

1 Like