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

TypeError at NewAccountMethod.set #2269

Closed
cypheron opened this issue Jan 30, 2019 · 4 comments · Fixed by #2318
Closed

TypeError at NewAccountMethod.set #2269

cypheron opened this issue Jan 30, 2019 · 4 comments · Fixed by #2318
Labels
Bug Addressing a bug

Comments

@cypheron
Copy link

cypheron commented Jan 30, 2019

Expected behavior

When running this line of code:
web3.eth.personal.newAccount("").then(console.log);
I should get the address of newly created account according to documentation.

Actual behavior / Steps to reproduce the behavior

However, I do get following error message when running the code on different platforms and different node versions (see further below for version details):

Error Logs

`/root/dev/bot/node_modules/web3/node_modules/web3-core-method/dist/web3-core-method.cjs.js:411
throw new TypeError("The latest parameter should be a function otherwise it can't be used as callback");
^

TypeError: The latest parameter should be a function otherwise it can't be used as callback
at NewAccountMethod.set (/root/dev/bot/node_modules/web3/node_modules/web3-core-method/dist/web3-core-method.cjs.js:411:17)
at Proxy.anonymousFunction (/root/dev/bot/node_modules/web3/node_modules/web3-core-method/dist/web3-core-method.cjs.js:224:28)
at Object. (/root/dev/bot/index.js:7:19)
at Module._compile (internal/modules/cjs/loader.js:736:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:747:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at tryModuleLoad (internal/modules/cjs/loader.js:568:12)
at Function.Module._load (internal/modules/cjs/loader.js:560:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:801:12)
at executeUserCode (internal/bootstrap/node.js:526:15)
at startMainThreadExecution (internal/bootstrap/node.js:439:3)`

Versions

NPM 6.5.0, Node v7.10.1 / v8.15.0 / v11.8.0, Web3-1.0.0-beta.41, Debian (Stretch) / Arch, 4.9.0-8-amd64 / 4.20.3-arch1-1-ARCH

@cypheron cypheron changed the title TypeError at NewAccountMethod.set (Node 11.8.0) TypeError at NewAccountMethod.set (beta.41, Node 11.8.0) Jan 30, 2019
@cypheron cypheron changed the title TypeError at NewAccountMethod.set (beta.41, Node 11.8.0) TypeError at NewAccountMethod.set (Node 11.8.0) Jan 30, 2019
@cypheron cypheron reopened this Jan 30, 2019
@cypheron cypheron changed the title TypeError at NewAccountMethod.set (Node 11.8.0) TypeError at NewAccountMethod.set Jan 30, 2019
@servantcdh
Copy link

same issue.

@cypheron
Copy link
Author

cypheron commented Jan 31, 2019

Similiar error when running web3.eth.personal.sendTransaction

`/root/dev/bot/node_modules/web3-core-method/dist/web3-core-method.cjs.js:411
throw new TypeError("The latest parameter should be a function otherwise it can't be used as callback");
^

TypeError: The latest parameter should be a function otherwise it can't be used as callback
at SendTransactionMethod.set (/root/dev/bot/node_modules/web3-core-method/dist/web3-core-method.cjs.js:411:17)
at Proxy.anonymousFunction (/root/dev/bot/node_modules/web3-core-method/dist/web3-core-method.cjs.js:224:28) ...`

@nivida
Copy link
Contributor

nivida commented Jan 31, 2019

Thanks for submitting this issue @cypheron will fix and release it on Monday.

@nivida nivida added the Bug Addressing a bug label Jan 31, 2019
@zymtx5g79k
Copy link

#theSameIssue. o-O

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Addressing a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants