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: Buffer() is deprecated due to security and usability issues. #275

Open
selivan opened this issue Sep 29, 2020 · 4 comments

Comments

@selivan
Copy link

selivan commented Sep 29, 2020

Environment

  • Extension version: v0.5.2
  • OS Type: Linux
  • VSCode version:
Version: 1.49.2
Commit: e5e9e69aed6e1984f7499b7af85b3d05f9a6883a
Date: 2020-09-24T16:26:09.944Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0

Summary

When VSCode starts error message in the Output panel appears:

[Error - 10:51:48 AM] (node:7048) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Reproduce steps

Start VSCode with installed extension vscoss.vscode-ansible.

Expected Results

No errors on start.

Actual Results

Error message in the Output panel appears, see Summary

@moltar
Copy link

moltar commented Sep 29, 2020

Dup of #274

@mrkvh
Copy link

mrkvh commented Oct 19, 2020

I second this issue under VSCode 1.50.1

Version: 1.50.1
Commit: d2e414d9e4239a252d1ab117bd7067f125afd80a
Date: 2020-10-13T14:53:05.704Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 19.6.0

@TriplEight
Copy link

This is really annoying, it becomes the first thing I see when open vscode.

@scoot
Copy link

scoot commented Oct 20, 2020

Also driving me crazy. Looks like its coming from here:

headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': Buffer.byteLength(postData) }

Changing the Buffer call to Buffer.alloc() / Buffer.allocUnsafe() / Buffer.from() might work to squash the error.

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

5 participants