Unlinking accounts

Hi guys, we seem to have a problem here; after unlinking an account it won’t sign back in using that account, instead it gives the error :

POST https://zjkiglxhien8.moralis.io:2053/server/users 500

We think it might be because the account that was unlinked was the main account. Other accounts are able to sign in just fine without altering the code, just the one we unlinked is throwing the 500 error

Also when I try to link the same account ( after logging in with a different account and then switching in metamask ) it crashes with this error :

RESTController.js?de49:304 POST https://zjkiglxhien8.moralis.io:2053/server/classes/_User/yZxOYhkn6byLB5VH225pgvI0 500

After further testing of the linking and unlinking systems, 2 of the 3 test accounts we use are now unable to connect at all.

We are going to spin up another server instance to carry on working, and leave the existing server instance with the data as is incase you need to inspect it to find the bug.

The server with the issue is : https://zjkiglxhien8.moralis.io:2053/server (Testnet)

Were you manually deleting anything? Or does the issue occur just from unlinking? I know there is an issue with Web3 authentication if the User entry is manually deleted without also deleting related rows in Session and other places.

Also, was unlinking done on a chain other than eth, like BSC or Polygon?

EDIT: I’ve been able to replicate this issue. It’s a bug. Working on it.

1 Like

We didn’t do any manual deletes, it’s entirely connected to the linking and unlinking process. Not sure about which chain it was on, we didn’t think to take note at the time, however we typically work with ETH, Ropsten, BNB and BSC Testnet

This bug slipped through the cracks for a while, but a fix was included in version 0.0.243. Please update your Moralis Server instance to the latest version and let us know if you experience any further issues.

Cheers.