"function not found" error when making both GET and POST requests to a Web App

Make sure you have saved the project, otherwise you can face the same issue. I faced the same because I didn't save the file before deploying.


Finally found the answer.

It's pretty stupid, but apparently saving and republishing your google script web app is not good enough. You need to save a new version and publish the new version to make sure your app gets updated properly.

enter image description here