Hi,
The documentation for Wix Http Functions states I can run the site in Preview mode and my console.log calls will be shown in the Developer console. However, clicking preview only opens the last viewed “Page” and not any of the routes for https functions. When I go to my _functions-dev URL for the particular function I want to test, there is no developer console. What do I click or how do I modify the URL to get the developer console for http functions?
1 Like
Yes… I’ve read that. I’ll explain in more detail what’s not working. The steps listed:
1. Add the call to console.log() in your HTTP function's code.
2. Save your site.
3. Preview your site.
4. Call the testing endpoint (the URL with _functions-dev) from an external application.
5. The logged messages appear in your site's Developer Console.
Particularly – step 3 opens up the last “Page” with a developer console, not an http function route.
So I follow step 4 and that takes me to a page with a json response from my function and no developer console. Therefore, step 5 is obviously not going to work.
Hi, I was having this same issue and there finally seems to be a workaround to do this right from Developer Console. In your http-functions.js file, scroll to the function that you want to see the console.log outputs for, and select the blue circle on the left hand side (in picture)

A screen like below will pop up. On the left, you can fill in a sample request to your API function then click the blue Run button. Your console.logs and output will appear on the right