Pako inflate returns undefined ( node.js )

When I use pako.deflate() i get a uint8array. then when I try to inflate it returns undefined.
My project is ja-chat;
problems: file index.js in root folder
lines 71-85

Please cover up your MongoDB URL in a .env File.

Also, this seems like more like #coding-help instead of #glitch-help, so I moved it there.