500 Server Error.

I am having a bit of issues with the stability of the Corvid service. It’s been the 2nd time in two weeks that users informed me that they can’t register via the register() function. What is the best way to check the api service status to make sure I can provide a reliable service and update my users accordingly?

https://support.wix.com/en/article/live-site-error-error-500-internal-server-error

To search for errors in the code, use ‘console log’:
https://support.wix.com/en/article/corvid-testing-and-debugging-your-code

Although it would be a good idea to post in your thread some more details about where exactly the error is occurring and what code is being used before the error happens etc.

Check out the Wix API for register to see if you can spot any errors in your code somewhere:
https://www.wix.com/corvid/reference/wix-users.html#register
https://www.wix.com/corvid/reference/wix-users-backend.html#register

This code on my custom signup lightbox works perfectly and closes after registering details before moving them onto my signup status page, then both names will be saved in contacts and once site member is approved the member details will be added to ‘members’ database.

import wixUsers from 'wix-users';
import wixWindow from 'wix-window';
import wixLocation from 'wix-location';

$w.onReady(function () {
    
    $w("#registerButton").onClick( (event) => {
        
   let email = $w("#email").value;
   let password = $w("#password").value;
   let first = $w("#firstName").value;
   let last = $w("#lastName").value;

   wixUsers.register(email, password, {
       contactInfo: {
        "firstName": $w('#firstName').value,
        "lastName": $w('#lastName').value,
       }
      } )
      .then( (result) => {
        let resultStatus = result.status;
  wixWindow.lightbox.close();
  wixLocation.to("/sign-in-status");  //Change the URL ending to whatever page you want to send the user to after they log in.
      } );     
    } );
    
});

Hey thanks for the response. The code I have been using has been fine and my users most of the time do not have issues registering. But I got notified a couple of times in the past 2 weeks that there’s problem registering when no code changes had happened. That’s why I am asking if there’s a way to check the status of the server of Wix as I’d need the APIs are as stable and reliable as possible.