jishi / node-sonos-http-api

An HTTP API bridge for Sonos easing automation. Hostable on any node.js capable device, like a raspberry pi or similar.
http://jishi.github.io/node-sonos-http-api/
MIT License
1.85k stars 460 forks source link

Sono API shows Error #900

Open surfer-09 opened 4 months ago

surfer-09 commented 4 months ago

Hello,

my Sono-API Command Window Shows this Error:

2024-06-25T10:58:39.976Z INFO http server listening on 0.0.0.0 port 5005 (node:6944) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Usenode --trace-deprecation ...to show where the warning was created)

Error

Version: 1.6.9

Whats the problem?

ApenJulius commented 4 months ago

@surfer-09 The error message you're seeing is related to the use of the Buffer() constructor, which is deprecated in Node.js. This deprecation is due to potential security vulnerabilities and unexpected behavior associated with the new Buffer() constructor.

To resolve this issue, the code should ideally be update to use the recommended Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() methods. These methods provide a safer and more predictable way to create Buffer instances.

Wouldn't hold my breath for such an old project though.

For you specifically... don't worry about it. Project should be working as normal, you just have that little extra text when you start it up

I make no claims to say the rest of this is safe or anything, found this project literally a few minutes ago and just saw this issue with a simple answer

Hope that answers your question!