question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Key not found issue when using dev-deploy

See original GitHub issue

Describe the bug

We’ve got feedback from a few devs having issues with dev-deploy. (Notes from @doriancrutcher šŸ‘ )

When they run yarn dev from create-near-app there’s this error:

Error: Can not sign transactions for account dev-1634847735013-6188886 on network testnet, no matching key pair found in InMemorySigner(MergeKeyStore(UnencryptedFileSystemKeyStore(/Users/doriankinoocrutcher/.near-credentials), 

running near dev-deploy -f and then yarn dev seems to work

To Reproduce Steps to reproduce the behavior:

  1. ran npx create-near-app --frontend=react app-name

  2. ran yarn for good measure

  3. ran yarn dev to try and start the prebuilt example application which in turn compiles the contract and then runs near dev-deploy

gives me the new account in this instance dev-1634854738905-7133674

and then returns the same error

  1. for funzies I run yarn start which returns the same error

then to make it work

  1. I run near dev-deploy -f which creates another new dev account

and deploys the contract onto there

  1. then I run yarn start and it works

Expected behavior

In the past, I would just run yarn && yarn start

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. MacOS]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
willemnealcommented, Oct 28, 2021

Nope, that just fixes the workspace package. Previously generated a cached testnet account that was 14 chars. I was able to do a dev deploy with near-cli as it generated a accountId that was 33 long. So my guess is the version of near-cli is old? It worked for me on 2.1.1

0reactions
SahilVasavacommented, Nov 25, 2021

This is running in a destructible docker container where near-cli gets installed anew everytime it’s created. Hence also root. But I have done it in my local setup as well. Same issue, tried reinstalling multiple times. Same with my colleagues. By now, I have tried it in my two machines one linux and mac with freshly installed near-cli. Here’s a link to one of the project where it is being used, https://github.com/CreatorOS/coin-toss-game-near-mobile-version This is the exact file where it is being used https://github.com/CreatorOS/coin-toss-game-near-mobile-version/blob/main/learn_src/scripts/1.init.sh

Read more comments on GitHub >

github_iconTop Results From Across the Web

NEAR dev-deploy fails with Error: Can not sign transactions ...
wasm An error occured Error: Can not sign transactions for account dev-1635099366550-3101206 on network testnet, no matching key pair found inĀ ...
Read more >
workaround for "key not found" error - Visual Studio Feedback
I was hoping I can use coalesce function for this but if I try to access parameter that wasn't defined I get "key...
Read more >
Question: dev/deploy workflow Ā· Issue #2489 Ā· pypa/pipenv
Hi. I'm looking for some guide/tutorial on using pipenv in development-delivery cycle, currently I'm missing two key points in docs: What isĀ ...
Read more >
I'm getting Error Message: Key based authentication is not ...
I have this command in a powerShell script. $storageAccount = New-AzStorageAccount -ResourceGroupName $resourceGroup -NameĀ ...
Read more >
NEAR CLI | NEAR Documentation - NEAR docs
Creates a key pair locally in .near-credentials with an accountId that you specify. Note: This does NOT create an account with this name,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found