Question:
Using postman to make a POST request to a function in velo api, the returned status code is always 404 and in console is written this log:
“[“Error loading function from web module backend/http-functions.js: function ‘use_myFunction’ not found”]”.
This only happens when the request is of type GET.
Hi, I got similar errors with my “post” request to Wix HTTP functions. What I found out is if I make the request with method “POST”, Wix won’t recognize it and converts it to a “use” request, but there is no “use_myFunction()” defined and an error is thrown. If I use method “post” in lower case in my request, it just works.
I know it’s strange, and I am not sure if that is also you case, but it doesn’t hurt to try. In my case, I am still trying to figure out if that is really(?!) how Wix works, or I did something wrong…