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.

Failed to verify accountId. [-32700] Parse error: Failed parsing args: missing field `account_id`

See original GitHub issue

Describe the bug CLI shows Failed to verify accountId. [-32700] Parse error: Failed parsing args: missing field account_id

To Reproduce Steps to reproduce the behavior:

  1. run near login
  2. login/select account from wallet.testnet.near.org
  3. http://127.0.0.1:5001/?account_id=… link shows unable to connect error
  4. CLI shows Failed to verify accountId. [-32700] Parse error: Failed parsing args: missing field account_id

Expected behavior CLI should login with selected account

Screenshots image

Desktop (please complete the following information):

  • OS: Manjaro
  • Version: latest rolling

Additional context node v16.13.1 near-cli v3.1.0 tested with both Firefox and Chrome. CLI crashes with that error even before account selection and redirection to that http://127.0.0.1:5001/?account_id=… link

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
armujahidcommented, Jan 4, 2022

Yes. Unable to reproduce this issue next day after restarting my PC. Closing this. May be this issue has something to do with ledger since I was trying to use ledger account with CLI when this issue started occurring. And that issue was even occurring with non-ledger account.

0reactions
Zaniyarcommented, Nov 11, 2022

I get this error not on the near CLI - the login there works. But I have the same error in the frontend when I try to call a method on the contract, " Failed parsing args: missing field account_id" but the account_id is there when I log it:

    myContract.nftSupply(wallet.accountId)
      .then(success)
      .catch(x=>{console.log("supply error",x)})
    
  console.log("my args",args)

Output:


> my args: Object: account_id: "blabla.testnet"[[Prototype]]: Object
> 
> App.js:100 supply error Error: [-32700] Parse error: Failed parsing args: missing field `account_id`
>     at json-rpc-provider.js:329:31
>     at async parcelRequire.register.e.exports.default (exponential-backoff.js:7:15)
>     at async f.sendJsonRpc (json-rpc-provider.js:304:15)
>     at async f.query (json-rpc-provider.js:116:13)
>     at async $3875d6d9a9da9cc6$export$bcca3ea514774656.viewMethod (near-wallet.js:70:26)
>     at async $2081698ec9a6d70e$export$eabe01de1e942655.nftSupply (near-interface.js:3:14)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to verify accountId. [-32700] Parse error ...
Describe the bug Unable to login. Near-cli is failing with error: Failed to verify accountId. [-32700] Parse error: Failed parsing args: missing field...
Read more >
near login command failed to verify accountId.
near login command failed to verify accountId. [-32700] Parse error: Failed parsing args: missing field 'account_id'.
Read more >
Failed to parse field of type in document with id ''.
A detailed guide on how to resolve errors related to "failed to parse field of type in document with id ''."
Read more >
Failed to verify accountId. [-32700] Parse error ...
Issue Title Created Date Comment Count Updated Date Duplicated objects in dataset 0 2022‑08‑02 2022‑10‑12 Can you add ability to turn on user feedback? 4...
Read more >
Quickstart - webargs 8.2.0 documentation
from webargs import fields, validate user_args = { # Required arguments "username": ... from flask import request from webargs.flaskparser import parser ...
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