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.

intrinsic gas too low while creating identity service

See original GitHub issue

i am trying to create identity service by using identityManagerAddService using did:ethr:rinkeby DID, but get the following error

[ethjs-query] while formatting outputs from RPC '{"value":{"code":-32000,"message":"intrinsic gas too low"}}'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mirceaniscommented, Nov 4, 2020

This looks like it’s being caused by the schema validation on the return type of the identityManagerAddService. It’s likely that I’m wrong but from the looks of it, the call to identityManagerAddService() is returning undefined.

@simonas-notcat can you suggest a way to disable the schema check here so that the issue can be further debugged?

1reaction
HamzaBinSarfrazcommented, Oct 26, 2020

Thanks the gas issue is resolved but unfortunatly i am getting this error while creating identity service


/home/ameer/.nvm/versions/node/v10.16.3/bin/node ./server.js
***************************************************************
 server.js
null: Error: Expected type object but found type string; identityManagerAddService; #/; INVALID_TYPE; undefined
    at new PluginReturnTypeError (/home/ameer/hamza/git/daf7-demo/node_modules/daf-core/src/validator.ts:33:5)
    at Object.exports.validateReturnType (/home/ameer/hamza/git/daf7-demo/node_modules/daf-core/src/validator.ts:56:11)
    at Agent.<anonymous> (/home/ameer/hamza/git/daf7-demo/node_modules/daf-core/src/agent.ts:198:7)
    at step (/home/ameer/hamza/git/daf7-demo/node_modules/daf-core/build/agent.js:44:23)
    at Object.next (/home/ameer/hamza/git/daf7-demo/node_modules/daf-core/build/agent.js:25:53)
    at fulfilled (/home/ameer/hamza/git/daf7-demo/node_modules/daf-core/build/agent.js:16:58) {name: 'PluginReturnTypeError', method: 'identityManagerAddService', description: undefined, path: '#/', code: 'INVALID_TYPE', …}
code: 'INVALID_TYPE'
description: undefined
message: 'Expected type object but found type string; identityManagerAddService; #/; INVALID_TYPE; undefined'
method: 'identityManagerAddService'
name: 'PluginReturnTypeError'
path: '#/'
stack: 'PluginReturnTypeError: Expected type object but found type string; identityManagerAddService; #/; INVALID_TYPE; undefined\n    at new PluginReturnTypeError (/home/ameer/hamza/git/daf7-demo/node_modules/daf-core/build/validator.js:41:28)\n    at Object.exports.validateReturnType (/home/ameer/hamza/git/daf7-demo/node_modules/daf-core/build/validator.js:65:15)\n    at Agent.<anonymous> (/home/ameer/hamza/git/daf7-demo/node_modules/daf-core/build/agent.js:233:41)\n    at step (/home/ameer/hamza/git/daf7-demo/node_modules/daf-core/build/agent.js:44:23)\n    at Object.next (/home/ameer/hamza/git/daf7-demo/node_modules/daf-core/build/agent.js:25:53)\n    at fulfilled (/home/ameer/hamza/git/daf7-demo/node_modules/daf-core/build/agent.js:16:58)'
__proto__: Error

Also my requested service looks like this

const result = await agent.identityManagerAddService({
            did: did,
            service: {
                id: did,
                type: 'identityManagerImportIdentity',
                serviceEndpoint: 'http://localhost:3001/agent',
            },
            options: {
                gas: 1000001
            },
        });
Read more comments on GitHub >

github_iconTop Results From Across the Web

intrinsic gas too low: how to increase gas in Mist?
You can type the gas you want in the blue underlined bit. Just click on it and type.
Read more >
32000 "instrinsic gas too low" showing 0 ETH
If I try to send ETH to a friends wallet it displays correctly, but while trying to initialize my wallet it displays zero...
Read more >
Failed transaction ('intrinsic gas too low') : r/Metamask - Reddit
11 votes, 13 comments. I get an error message when trying to send funds to another wallet. It reads: Transaction XX failed!
Read more >
Ethereum truffle MetaCoin fails with 'intrinsic gas too low'
I ended up changing genesis block gasLimit to "gasLimit": "0x2FEFD800",. config for homestead block to 10 (apparently otherwise there are ...
Read more >
Why am I getting "transaction out of gas" errors? - Kaleido Docs
Likely error message: intrinsic gas too low . · Fix: Supply a higher gas amount, or use a client like the Kaleido REST...
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