Hi,
This is really bugging me at the moment. I have 2 wix premium sites running. Currently one site returns 500 server error whenever register() is called, the other one is completely fine. I was testing whether the api is working or not, so for simplistic’s sake, I ran the following code on both sites. And the result is persistent, one works and one doesn’t. This makes no sense to me, and it’s been ongoing for a while. The site in question https://www.thecollective.trives.co/ had been running fine in the past, but suddenly the register() function just doesn’t work any more since today. It has been unstable this week regardless. Can someone from the Wix team please look into this? Thanks.
I’ve attached screenshots of the error.
import wixUsers from ‘wix-users’;
$w.onReady( function () {
let email = “test@test.com”
let password = “testpassword”
wixUsers.register(email, password)
.then(result=>{
console.log("registered")
})
. catch ("error")
});