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

DeprecationWarning: Using Buffer without new will soon stop working. #1163

Closed
muxahuk opened this issue Nov 2, 2016 · 9 comments
Closed

Comments

@muxahuk
Copy link

muxahuk commented Nov 2, 2016

node v 7.0.0

Getting warning:

(node:8628) DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new Buffer()`, or preferably `Buffer.from()`, `Buffer.allocUnsafe()` or `Buffer.alloc()` instead.

from these line

// lib/connection.js line: 299
var emptyBuffer = Buffer(0);
@alpertuna
Copy link

+1

@kristijanhusak
Copy link

+1

@TyrfingMjolnir
Copy link

It's flooding my logs, how do I fix this?

@alpertuna
Copy link

alpertuna commented Nov 15, 2016

@TyrfingMjolnir
To avoid flood, you may use node with --no-warnings temporarily

@tclzcja
Copy link

tclzcja commented Nov 18, 2016

+1

@mxmaxime
Copy link

mxmaxime commented Nov 20, 2016

@alpertuna thanks, it's work pending fix

@alpertuna
Copy link

It looks warning is over with Nodejs 7.2.1

@noinkling
Copy link
Contributor

@alpertuna Can confirm, thanks for the heads-up.

@charmander
Copy link
Collaborator

The warning is removed with Node 7.2.1, and some variant of #1154 should take care of the cause.

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

8 participants