Polkadex-Substrate / Polkadex-Open-Beta

12 stars 3 forks source link

Registration failing for wrong reasons #411

Open DayalKS2 opened 1 year ago

DayalKS2 commented 1 year ago

Registration with new account is failing. First time it just failed with no reason even though it showed the screen background indicating Successful transaction (the party crackers highlighted background). The error just said Cannot Register Account for 1st time registration. Next time when I tried again it is saying, its already registered.

onchainaddress:{esp5dCFuAuPi6KD3HzhHWQGjgwiNvyWLp6qJW5EGgo7zkhRBJ}

image

https://user-images.githubusercontent.com/94037805/201341946-dc5c5305-6b57-41b5-8fb8-6cb03a74bd13.mp4

nuel77 commented 1 year ago

it seems that the account was already registered on chain but not updated in our servers.. will look into this

nuel77 commented 1 year ago

can you please try registering a fresh account and see if its happening again.?

DayalKS2 commented 1 year ago

No its the same behavior...Attaching the recording where I tried for a fresh address..It first showed that trading account is created, but it showed an error message first saying cannot create account. Next time it failed saying account already registered

https://user-images.githubusercontent.com/94037805/201353164-d88a9173-3862-4daf-8728-3ade748cde00.mp4

nuel77 commented 1 year ago

this is strange. can you do inspect the console when you get that random error message... and attach a screenshot if you see some error on the console.

nuel77 commented 1 year ago

also can you share the funding account address you registered but not showing up as registered.

DayalKS2 commented 1 year ago

The very first I registered is esp5dCFuAuPi6KD3HzhHWQGjgwiNvyWLp6qJW5EGgo7zkhRBJ .This I could succesfully register and do some transactions successfully. This is the one which is later showing up as NOT Registered after the error whuch caused me not to navigate between pages. Now let me try to register a fresh one again: esnTeEiFBFGnnUVQreDGCWjVhWPDEhQ2XqSTKAXZdhP3G9nVE

{ "errors" : [ { "message" : "Invalid URI format", "errorType" : "MalformedHttpRequestException" } ] } image

https://user-images.githubusercontent.com/94037805/201468698-0ada84c3-c8b6-4bce-a7ed-c40b3e042a78.mp4

DayalKS2 commented 1 year ago

FYI..I cleared my cache and then tried logging into the account. Now the ERROR is not occurring. Now I see my registered addresses with 'Registered' tag, but it says 'Account not present in the browser'. When I go to Balance Screen, I dont see any balance there (Did I lose my balance which was there in Funding account. Also some fund waiting for my Claim...) image image

DayalKS2 commented 1 year ago

Now that I have cleared cache, I used another email to register a new account and tried repeating the same steps which I did with first account. So, exactly when I tried to register my second Funding Account (eskxczdL7zKNiTC1PvoFfxdALwQMaDWtiajet7t3va3GhZdgq), the same issues happened again. 1.Got Error saying Account Cannot be registered, where in the back ground it showed that account has been created (#411) 2.After this I am getting Same Error when I try to navigate to other models (#386) 3.Now it shows that my registered accounts are cleared out when I visited Account (#389)

nuel77 commented 1 year ago

FYI..I cleared my cache and then tried logging into the account. Now the ERROR is not occurring. Now I see my registered addresses with 'Registered' tag, but it says 'Account not present in the browser'. When I go to Balance Screen, I dont see any balance there (Did I lose my balance which was there in Funding account. Also some fund waiting for my Claim...) image image

there are two things you can do: 1) if you have saved the mnemonic of the old trading account when you created it you can just import it again.. go to new account-> import account 2) you can just create a new trading account---- all trading accounts linked to a funding account will have the same balance.. you can withdraw using this new account. the claim action is done by your funding account.

nuel77 commented 1 year ago

Now that I have cleared cache, I used another email to register a new account and tried repeating the same steps which I did with first account. So, exactly when I tried to register my second Funding Account (eskxczdL7zKNiTC1PvoFfxdALwQMaDWtiajet7t3va3GhZdgq), the same issues happened again. 1.Got Error saying Account Cannot be registered, where in the back ground it showed that account has been created (#411) 2.After this I am getting Same Error when I try to navigate to other models (#386) 3.Now it shows that my registered accounts are cleared out when I visited Account (#389)

can you confirm these are the steps to recreate it right? 1) sign up using a new email 2) register a funding account 3) deposit some tokens 4) on withdraw page input alphabetic values and initiate withdraw this will cause the error between pages. 5) register a new funding account ( this should fail causing the error you faced)

nuel77 commented 1 year ago

succesfully

can you share this error more. the one that shows the generator._invoke

image
pavankanteti commented 1 year ago

@nuel77 to add the retrieve mechanism pr

nuel77 commented 1 year ago

retry mechanism: https://github.com/Polkadex-Substrate/Polkadex-Orderbook-Frontend/pull/439