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

getting [DEP0005] DeprecationWarning when using latest node version #66

Open
AionJayT opened this issue Dec 12, 2018 · 0 comments
Open

Comments

@AionJayT
Copy link

Bug Report Template

Please include the following information when reporting an issue you are facing while using the Aion Web3 API.

Web3 version:

v1.1

You can find this by executing:

npm view aion-web3-v1.0 version

Command(s) triggering the issue:

What are the commands you're trying to send the API? This can be the JavaScript code you're running, or just the single command that seems like it's bugging. If possible, please include the parameters of the request as well.

When executing the script with the latest node version (version 11), will get the warning message.
(node:29706) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

I believe some of our dependency libraries are using the old syntax. If I execute it under node version 8 then didn't see this issue happen.

API output:

What does the API say in response? If the API errors out, please provide as much of the error message as possible.

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

No branches or pull requests

1 participant