FAILS: wix-users-backend > wixUsersBackend.emailUser('verifyRegistration', ...

Here we go again, the Corvid whack-a-mole.
Your ticket number: 103603290

Have not touched any of the member signup code in a long while - 1300+ sign ups with that code in a few weeks.

Also, it is the same code provided in the Corvid API:

Register a user sending an email for confirmation
https://www.wix.com/corvid/reference/wix-users-backend.html

Out of the blue, nobody can sign up a new account - including myself.
Poked around, placed the doRegistration in the front (vs backend, where it was) and I get this error in the console:

The “Notifications” inbox in the top right of the dashboard (next to login) also stopped working around the same time.

Anyone?

Tried my old registration page (without the confirmation email) - same " 400 bad Request " error.

I cannot even register myself for development and testing …

Poking around further, the triggered email now fails with:
“contactId does not match current session contact (401)”
Googled for answers on this forum, and none of it was helpful.

export function doRegistration(email, password, firstName, lastName, phone, empID, referral) {
 // register the user
 return wixUsersBackend.register(email, password, {
 "contactInfo": {
 "firstName": firstName,
 "lastName": lastName,
 "phones": [phone],                  // "phones": [phone],
 "empId": empID,
 "referral": referral
          }
  } )
  .then( (results) => {
 // REGISTRATION WORKS.  results has valid status / user / approvalToken
 // results.user.id has vaild entry

// sending verification email via Wix triggered email FAILS with "Error: Not Found: the requested item no longer exists."

 // user is now registered and pending approval
 // send a registration verification email
 return wixUsersBackend.emailUser('verifyRegistration', results.user.id, {
 "variables": {
 "firstName": firstName,
 "lastName": lastName,
 "verifyLink": `https://ualmatrix.com/post-register?token=${results.approvalToken}`
      }
    } )
    .then( (response) => {
 return results
    } );
} );
}

Registration works, the triggered email for email verification fails.
If I send it from the back, where it was working fine for several weeks/months, I suddenly now get this error message:
“Error: Not Found: the requested item no longer exists.”

If I try to register and send the email in the frontend with wixUsers, I get this error:
"“contactId does not match current session contact (401)”

Or this:

With your detailed posts above it looks like there could be an issue with the Wix Users Backend API as all of that should work fine through the backend.

Others have also been having issues with Wix Users Backend API recently too in other forum posts.

Wix Admin/Mods should be back in on Sunday looking at this forum, so hopefully they can get it sorted out as soon as possible. :crossed_fingers:

Thanks, Master GOS.
Very, very bad timing for such an essential feature to go down in flames like this.

I could make it work, but I insist on email verification with a nice, clean triggered email. Also, why do I have to rewrite working code every time Corvid makes some drastic changes somewhere - lately, it’s like playing whack-a-mole.
Can’t run a business with such a productivity killer.

After weeks of having a nice registration flow with a working triggered email for email verification, my Wix Corvid app appears to have regressed to exactly what stcroppe described in Jul 19, 2018:

https://www.wix.com/corvid/forum/community-discussion/wix-users-wix-crm-registration-using-email-with-approvaltoken-problem

As a side-note, even when it was working, we where stuck with the fugly and lengthy multi-line URL+token for the user to click in the verification email - vs a clean short link or button saying “click here to verify.”

A clean, short link should have been added long ago, with the current fugly and lengthy multi-line URL+token placed at the bottom of the email as a backup to the short link (in case it fails for some reason).

Was writing a temporary sigup page without triggered email verification based on my results described above - but, now I’m in the twilight zone.

Any changes I make in the register.jsw file are suddenly ignored.
As if someone is punking me with a router file not visible to me.

Been here before.

I copy and paste the EXACT same code to new files (front and back) - voila, now it works. I’m talking about the workaround without the email confirmation, the triggered email is still failing, of course.

Disgusted.

Also, how come there are only about 5 users with this problem and asking questions on this forum?

( Wix Support )May 3, 2020 2:38 PM (UTC-04:00)
Hi,

We have forwarded the information to the relevant department and they are investigating this matter.

We will contact you once we have feedback.

Thank you for your patience and understanding.

Have an awesome day!

Best regards,
Wix Customer Care

Hi Brainstorrrm,
I’ve notified some folks on the team about this issue, and hopefully we’ll have an update for you tomorrow. Thanks for your patience.

Thanks, Marlowe.


Hello,

I have tested the emailUser backend functionality by building a new registration page from scratch and could not reproduce the issue.

The only strange thing I noticed is an ‘in promise’ error when using a very long password. Otherwise, the rest works just fine.

If the issue persists on your end, please send us a video of the issue using screencast .

Simply recreate the issue while recording the steps. Add the screencast.com URL to your response.
Thank you in advance. We look forward to your response.

Regards,
Corvid Team


Did a quick test and the error is gone, however, instead of my triggered email, a generic Wix email is being sent.

So, overall the automated signup flow fails, because the generic Wix Email sends the user to their profile page.

My triggered email sends them to the portal - where I need the user to be for login, so they can start their login with an employee ID before they can use the Wix login.

So, “the fix” is not good enough.
I need triggered emails to work.
I pay extra for “Wix Ascend” to send such triggered emails.
Hope there is a real fix soon.

I will rewrite the whole login scheme and flow - but I still need triggered emails to work.

Hi, I tried it myself i was able to register user and send an email in the same request… If you still have problems, let me know

With a triggered email?

Side note: same time triggered emails fell apart, I started getting randomly logged out from my Wix account about once or twice an hour.
This, while actively working on the site (vs idle).

It’s clearly a Wix issue, since none of the other apps, processes and websites have issues with the internet.

or you could avoid the problem with an afterupdate hook and sendgrid. It took me banging it with a wrench but the dynamic templates on sendgrid are something I can give to a marketing kid. I have to add a required field in CRM but happily the business asked me to create one so I don’t have to push dummy data to trigger the event. It would be so much nicer if privatemember data wasn’t readonly and had update/insert hooks but it can be Mygyvered around on the update of the crm data collection.

Just a couple of thoughts about getting around the pain and maybe avoiding breaking changes in notification/email.

Now if I could just come up with a decent way of addressing dynamic menuing and not have impossibly bad performance from the corvid ide I might have a good weekend. :).

@brainstorrrm Hey, I hope you are doing good. I am reaching out - not for this subject matter but rather to find out if Wix Forum has deleted your 2FA posts(?). I have seen my posts regarding them have been deleted. Since I couldn’t find a way to message you directly, had to use this way. We can delete these later.

@reveel

Looks like they are starting a fresh forum thread for feature requests.
Place a new request … and good luck.

@brainstorrrm haha ok. I’ll delete my post here soon.