Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non persistance of new accounts #326

Open
JesseAbram opened this issue Dec 11, 2024 · 6 comments
Open

Non persistance of new accounts #326

JesseAbram opened this issue Dec 11, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@JesseAbram
Copy link
Member

JesseAbram commented Dec 11, 2024

I create a new key on the current testnet (register), go to sign and it works, while it is in the same process. But when I exit the process and come back I get a not registered error.

I can start the registration again and it works, now my config has been consistent through a few versions, and I have tried switching which account is selected but no joy as of yet

for reference this was the error

There was an issue with signing Error: request failed 500, Internal Server Error fetch: http://validator-0.prod.testnet.testnet-2024.infrastructure.entropy.xyz.:3001/user/relay_tx FULLRESPONSE: Substrate: User is not registered on-chain
    at sendHttpPost (file:///Users/jesse/Desktop/entropy/cli/node_modules/@entropyxyz/sdk/dist/chunk-A3UVA2EN.js:42:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async SignatureRequestManager.submitTransactionRequest (file:///Users/jesse/Desktop/entropy/cli/node_modules/@entropyxyz/sdk/dist/index.js:399:22)
    at async SignatureRequestManager.sign (file:///Users/jesse/Desktop/entropy/cli/node_modules/@entropyxyz/sdk/dist/index.js:330:18)
    at async SignatureRequestManager.signWithAdaptersInOrder (file:///Users/jesse/Desktop/entropy/cli/node_modules/@entropyxyz/sdk/dist/index.js:293:23)
    at async Entropy.signWithAdaptersInOrder (file:///Users/jesse/Desktop/entropy/cli/node_modules/@entropyxyz/sdk/dist/index.js:840:12)
    at async EntropySign.signMessageWithAdapters (file:///Users/jesse/Desktop/entropy/cli/dist/cli.js:11153:25)
    at async entropySign (file:///Users/jesse/Desktop/entropy/cli/dist/cli.js:11180:56)
    at async main (file:///Users/jesse/Desktop/entropy/cli/dist/cli.js:11934:9)
? Return to main menu? No
@frankiebee frankiebee added the bug Something isn't working label Dec 16, 2024
@mixmix mixmix added this to the Function Completeness milestone Dec 16, 2024
@rh0delta
Copy link
Contributor

rh0delta commented Jan 7, 2025

    const [sig, proof] = sigsAndProofs[Math.floor(Math.random() * sigsAndProofs.length)];
                         ^

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
    at #verifyAndPick (file:///Users/nayyirjutha/Development/Entropy/cli/node_modules/@entropyxyz/sdk/dist/index.js:440:26)
    at SignatureRequestManager.sign (file:///Users/nayyirjutha/Development/Entropy/cli/node_modules/@entropyxyz/sdk/dist/index.js:330:48)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async SignatureRequestManager.signWithAdaptersInOrder (file:///Users/nayyirjutha/Development/Entropy/cli/node_modules/@entropyxyz/sdk/dist/index.js:292:23)
    at async Entropy.signWithAdaptersInOrder (file:///Users/nayyirjutha/Development/Entropy/cli/node_modules/@entropyxyz/sdk/dist/index.js:844:12)
    at async EntropySign.signMessageWithAdapters (file:///Users/nayyirjutha/Development/Entropy/cli/dist/cli.js:11370:29)
    at async Command.<anonymous> (file:///Users/nayyirjutha/Development/Entropy/cli/dist/cli.js:12292:27)
    at async Command.parseAsync (/Users/nayyirjutha/Development/Entropy/cli/node_modules/commander/lib/command.js:1092:5)```

@rh0delta
Copy link
Contributor

rh0delta commented Jan 9, 2025


    const [sig, proof] = sigsAndProofs[Math.floor(Math.random() * sigsAndProofs.length)];

                         ^



TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))

    at #verifyAndPick (file:///Users/nayyirjutha/Development/Entropy/cli/node_modules/@entropyxyz/sdk/dist/index.js:440:26)

    at SignatureRequestManager.sign (file:///Users/nayyirjutha/Development/Entropy/cli/node_modules/@entropyxyz/sdk/dist/index.js:330:48)

    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

    at async SignatureRequestManager.signWithAdaptersInOrder (file:///Users/nayyirjutha/Development/Entropy/cli/node_modules/@entropyxyz/sdk/dist/index.js:292:23)

    at async Entropy.signWithAdaptersInOrder (file:///Users/nayyirjutha/Development/Entropy/cli/node_modules/@entropyxyz/sdk/dist/index.js:844:12)

    at async EntropySign.signMessageWithAdapters (file:///Users/nayyirjutha/Development/Entropy/cli/dist/cli.js:11370:29)

    at async Command.<anonymous> (file:///Users/nayyirjutha/Development/Entropy/cli/dist/cli.js:12292:27)

    at async Command.parseAsync (/Users/nayyirjutha/Development/Entropy/cli/node_modules/commander/lib/command.js:1092:5)```

Issue with reshare flow on core, fix will be in next release

@mixmix
Copy link
Contributor

mixmix commented Jan 21, 2025

@JesseAbram to be able to debug this we need to know

  1. what version of the cli are you using entropy -v
  2. how did you install it?
    • A) npm install -g @entropyxyz/cli ?
    • B) git clone + yarn && yarn build + ...

@mixmix
Copy link
Contributor

mixmix commented Jan 21, 2025

at sendHttpPost (file:///Users/jesse/Desktop/entropy/cli/node_modules/@entropyxyz/sdk/dist/chunk-A3UVA2EN.js:42:11)

If your stacktrace has not been edited, it looks like B - a manual/ dev install.
Ideally you are not testing that, and test the global install that we are releasing as "ready" (A). If you do want to give feedback we need to know the commit / tag you're sitting on

@mixmix
Copy link
Contributor

mixmix commented Jan 23, 2025

I just reproduced this with entropy sign "some string"

Well, the error that Naynay mentioned. Have not seen the one Jesse showed

@mixmix
Copy link
Contributor

mixmix commented Jan 23, 2025

@rh0delta said in slack

Jesse's issue is due to a resharing problem in core which will be solved in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants