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() (Use Buffer.from instead?) #17

Open
oakleaf opened this issue Feb 25, 2023 · 2 comments
Open

DeprecationWarning: Buffer() (Use Buffer.from instead?) #17

oakleaf opened this issue Feb 25, 2023 · 2 comments

Comments

@oakleaf
Copy link

oakleaf commented Feb 25, 2023

Hello and thank you for this minimal and smart repo!

Anyway, I am given warnings about using Buffer instead of Buffer.from with my Node 18 Lambda application.

Full error:
ERROR (node:8) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Im guessing it could have to do with busboy or something since your lib doesnt even include "Buffer" at all (from what I can see).

A fix to this would be appreciated 👍

@solarii85
Copy link

I encountered the same issue... have published a revised version here using the PR opened by jrose-stac. Take no credit for the changes, simply published a new package as I needed it for a project. Solved the issue for me, hope it helps.

@hpardess
Copy link

hpardess commented May 4, 2024

Same warning...

ERROR	(node:8) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

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

3 participants