aion_web3 icon indicating copy to clipboard operation
aion_web3 copied to clipboard

getting [DEP0005] DeprecationWarning when using latest node version

Open AionJayT opened this issue 6 years ago • 0 comments

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.

AionJayT avatar Dec 12 '18 01:12 AionJayT