Closed sirpy closed 2 years ago
@sirpy it's very strange case. according to the logs user deleted account then started FV. (without re-creation of account)
don't even imagine how this could happen. checking similar cases...
@sirpy Still couldn't understand what's happening with 0x477663a87e46b60981625430d00524ca2b600d61
But for the other similar cases i've found the users don't have crmId. The reason is addCRMRecord failed because of 3sec timeout.
I've opened PR with a temporary fix. It will re-check does we have crmId and create it if not after login (when we're calling for /userExists passing email and mobile) @vldkh will test it tomorrow on QA and we'll hotfix it to prod. Also this fix adds check for crmId during whitelisting to avoid the error in the logs.
But it won't work with reg methods providing email only. To fix the issue with passwordless mobile login we need different approach needs to be discussed. My suggestion is:
/userExists
should check for crmId in the case of existing and return itAsyncStorage
?)/verify/crmId
) checks if req.user have crm id, if not - calls createCRMRecord({ ...req.user, email, mobile }, req.cookies.__utmzz, req.log)
what do you think ?
@johnsmith-gooddollar
i've already have the code in updates
that verifies users crmID, so we can just change the date on this update, to make it run again for everyone.
we get the following errors
CRM setWhitelisted after fv failed
users we get this error for seem to not have a record in our database therefor no crmId so we get that error trying to update their ongage record with the whitelist status
sample user 0x477663a87e46b60981625430d00524ca2b600d61 more can be found by searching the error in the logs
p.s i've now noticed this user also requested his account deleted and then signed up again then deleted again... can that be the cause? why isnt the record re-created after he signs up again? is this a pattern with other users having this error?
[x] find source of issue and fix