The Wix advanced support team is telling me something and my developer is telling me something very different can you please tell me who is correct?
Wix Support =
I have checked your site and could see the following code optimization issue that is a likely cause of the insistency due to concurrent code running at the same time.
To resolve the issue, do away with await keyword and use then promise(callback function) of the insert function to execute the return statement code.
This should improve your code functionality, hence resolve the errors.
Feel free to contact us again if you need any further assistance.
Have a good day.
Developer =
We have already done that since the start, here is a screenshot with the keywords highlighted.
Wix Support =
Hi,
Thank you for getting back to us.
Yes, the code has been highlighted but hasn’t been changed as per my recommendations in my very first response.
“To resolve the issue, do away with await keyword and use then promise(callback function) of the insert function to execute the return statement code.”
Developer =
Bro, it’s literally the same, Using async/await or Promise/then has the same outcome, But async/await is better for catching errors, Wix use runtime workers to run our JavaScript code, which in their case, Node.js … they technically can’t treat it differently, JavaScript code is universally the same everywhere
This whole thing is absurd. The code either works or not. If it work %99.91 of the times then nothing is wrong in the code.
Besides, the function doesn’t just get rejected (due to an error), it just hangs until the server terminate (timeout) the process, it means something is wrong with the server, not the code. All these issues started after the issue in their US server that THEY informed you about, the errors has been reduced thanks to the dataAdapter that I have developed, but the server issues are still there.
I don’t have access to their server to work my code around their “bugs”, and yet I’m required to come up with a “magical” code that works with their bugs!!
Wix don’t give developers access to “X-requestId” or other headers, and they’re asking you, the client, to provide them with such IDs, when even developers can’t access them and the only way to get them is to monitor the browser for hours hoping to catch an error and read its request ID"
Who is correct?