[SOLVED] DeprecationWarning: Buffer() is deprecated error on Galaxy after deployment

My meteor application running fine in local environment with node version 12,
But after deploy the app to galaxy it shows this 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.
Memory usage: rss: 355 Mb, heapTotal: 302 Mb, heapUsed: 291 Mb, external: 25 Mb,

i can login to the application but couldn’t run some functionalities like sync.

It’s very simple and unlikely to have anything to do with Galaxy.

Somewhere in your code, or one of the dependencies, uses the now deprecated Buffer() method. Here’s how to fix that: https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/

(If you update your version of Meteor, which will also update its local Node binary, you should be seeing the same warning.)

@illustreets i have installed reactive-aggregate package and implemented my all publications with this package, and now i reverted this change and deployed to server, now the error is gone and the app is working fine. is this error caused by this package ?

By it, or by one of its dependencies, if the problem stopped once you uninstalled it. You can only find out by looking in its source code, in case it’s available.

but why this worked in my local system? my live db is huge is that a matter?

Just like I said in the reply you quote: if your Meteor hasn’t been updated you would be using an older version of Node. Galaxy uses the latest one, hence why you get the warning there but not locally.

Here’s the relevant command to update Meteor: https://docs.meteor.com/commandline.html#meteorupdate

@illustreets I am using meteor version 1.10.1 and node 12.16.1 on my local system. i found one function ‘new Buffer’ in my code hope this is the reason for the issue. Thank you.