Cannot GET /POST? error in express? Cannot GET /POST? error in express? express express

Cannot GET /POST? error in express?


You did not include the ejs file with the form you want to submit, but from the error you get it seems you are not doing a POST request, but instead a GET request to path /POST. This is a completely different thing.

I guess in the form you have something like:

 <form action='POST'>

but instead you need something like:

<form action='/' method='POST'>


I just had a similar problem and I solved it because I forgot to include the app.get for my /post link.