HELP: wix-http-functions not executing at all?

All of a sudden, NONE of my functions in http-functions.js are executing! Not production, not functions-dev. I can’t even get a console.log to output. Any idea what could be going on?

No changes to code. Even test code is not executing. Is anyone else experiencing this issue?

Can you post the code? What error do you receive on the external caller side?

I have a ton of code, so I created a simple test function to do nothing but output to the console.

import { created , ok , serverError } from ‘wix-http-functions’ ;

export function post_doTest ( request )
{
console . log ( “DO TEST” )

}

I am calling the dev function
https://www.mysite.com/_functions-dev/doTest

NO output to console. No errors. Nothing.

Not from my test function or ANY function. Never had anything like this happen before. This makes absolutely no sense.

This is clearly a wix issue. I had to submit a ticket. It is simply not working. I copied the site (to test) and all of my functions execute.

It’s been hours since reported. We have paid premium sites… I wish they would respond.

I am referring this to QA for evaluation. Please post the URL of the problem site and explain where we can see the problem.

Hello. You can replicate the issue on any of the functions. Here are a few:

https://www.bfs.agency/_functions/doTest
or
https://www.bfs.agency/_functions-dev/doTest

Here is another:
https://www.bfs.agency/_functions/editFNA
or
https://www.bfs.agency/_functions-dev/editFNA

I can post more if needed. All were functioning as of Thurs or Fri last week.

THANK YOU!!!

Hi. I just checked the test function that you kindly prepared a couple of times. It sends the console log as expected. Is this issue still relevant for you?
If yes, can you please elaborate more on how do you call this function?
Regards, Alex

Alex,

This issue is very much relevant.

This is not a problem with my code - it is something wrong in the background of WIX. If I comment out ALL of my code, except this simple doTest function, it still does NOT work.

Postman will show it correct. There is nothing wrong with the code or functions. I have proven that by commenting out all code AND by copying this website and executing the exact same code in the copied website - all works fine.

This simple form will call post_doTest, which should output to the console in Chrome:

https://www.cognitoforms.com/BFSLLC1/lptest

If you go to my Site Events in MY account, there is NO output there either.

Let me restate that if you take the same EXACT code and place it in another wix site OR copy the wix site, it WILL work.

I am convinced that something is wrong on the WIX back end. Please help

Here is a demo video of the exact problem. Hopefully this will help:

I have figured out the problem. Apparently, wix is blocking cognitoforms.com for my domain only. I have also reported this in the wix ticket (along with other research) but I am not getting any responses.

All they need to do is figure out why submissions from cognitoforms.com are being blocked and then remove the block.

It is very frustrating not getting any responses back from them.

Hi Ien.

Just to clarify. I tested this specific function doTest on your site via Postman and via the Terminal applications. Both times it worked fine for me (see my screenshot above).
Also the fact that this function works for you on a cloned version of the site means that Wix is not blocking http://cognitoforms.com/ service.

Have you tried to reach out http://cognitoforms.com/ support and ask them to check the request logs to see if the request is coming out from their side and if not - what is the reason?

We are also checking on our side if there are possible blocks or other issues, I will update here.

Please let me know if I can help with anything else.
Regards, Alex

Small update.

Our engineers just checked that everything is working fine on Wix side. There is no issues with your site or account.

The best way to proceed would be to reach out http://cognitoforms.com/ support and ask them to check it on their side.

Since you also reported a support ticket, please follow up there in case you’ll need further assistance (it is the same team working on your request in this thread and in the support ticket).

Regards, Alex

IMHO, function working from a cloned version does not mean that wix is not blocking the service. It means the (test/clone)instance of wix from where the call is being made is working fine.
The production instance could be in a whole different domain which is being blocked.
Why am I saying this? I have a running issue(#211943126) that WIX team have acknowledged and is investigating for about a month now, where an oauth call to facebook fails from live site, but works from postman, or from wix’s editor’s run function.

I agree. Now, after we investigated this issue more, we can confirm that the requests made from http://cognitoforms.com/ are failing on any site with domain connected (cloned site simply didn’t have a domain).

Anyway, in order to understand what is happening, we would need more logs from the caller side.
Which is why the best thing would be to reach out their support and ask to provide more logs about this issue, like: what is the error? is it 4xx, 5xx? is there a request id? what does their network logs say? what IP they get when calling Wix site endpoint?