You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the failure, I continue using the result, which becomes uncompressed Buffer and just saves it to the database as binary data. Buffer seems to be perfectly fine. While I also can get it from the database, convert to string, parse JSON out of it and use as intended.
Nodejs version v10.8.0
npm brotli: 1.3.2
This is how i build this data variable:
letdata={m: message||'',d: details||'',t: moment().unix(),// when created timestamp};data=JSON.stringify(data);data=Buffer.from(data,'utf8');
The text was updated successfully, but these errors were encountered:
Haven't worked how exactly this happens but here is the code:
I get error:
The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type object Error
so I added some more logging to double check what's coming to this compress function. The output:
After the failure, I continue using the result, which becomes uncompressed Buffer and just saves it to the database as binary data. Buffer seems to be perfectly fine. While I also can get it from the database, convert to string, parse JSON out of it and use as intended.
Nodejs version v10.8.0
npm brotli: 1.3.2
This is how i build this data variable:
The text was updated successfully, but these errors were encountered: