Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
TypeError('"string" must be a string, Buffer, or ArrayBuffer') when logging a string #10
Comments
|
@Shwetajain148 can you reproduce this on your end? |
|
@mrister I am not able to reproduce the issue. Can you please share your .js file that is creating the issue for you. Also, share the version of node and details of the environment in which you are setting up logging and observing this issue. cc: @mostlyjason |
|
@mostlyjason Node: v7.7.2 // https://github.com/loggly/node-loggly-bulk#getting-started
// did: npm i node-loggly-bulk
const loggly = require('node-loggly-bulk');
const client = loggly.createClient({
token: '<My TOKEN>',
subdomain: '<My SUBDOMAIN>',
json:true
});
client.log('test'); |
|
Works on node 6.9.1 |
|
Closing since this issue is fixed. If it reoccurs please reopen. |
|
Seeing this again with Node v8.8.0: |
|
Reopening since it's been reported here as well MauriceButler/bunyan-loggly#23. FYI bunyan-loggly is a community supported library so we have not tested that one yet. The fix we made earlier for winston might affect bunyan differently. |
|
FYI, for bunyan-loggly users, I was able to fork bunyan-loggly and downgrade node-loggly-bulk to 2.0.2 as a workaround. Works fine for now. |
|
Addressed in 2.1.0 please reopen if it keeps happening after updating. |
|
Hey guys we temporarily had to roll back this change in 2.2.0 so this may pop up again, but we are working on a fix which should be ready in a few days. |
|
@mostlyjason I suggest you reopen to not forget this issue and close once confirmed what exact version when it will be fixed. |
|
Thanks I'm reopening it now |
|
I am experiencing this issue in latest update |
|
@mostlyjason I have published a beta package and left a comment including the instruction to install the beta package on the issue MauriceButler/bunyan-loggly#23. |
|
This should be fixed in version 2.2.1. Closing for now, but please reopen if the issue reoccurs after updating. |
So When I do the example like in the readme (With proper Loggly credentials).
https://github.com/loggly/node-loggly-bulk#getting-started
And If i do a
client.log('test')I get:TypeError('"string" must be a string, Buffer, or ArrayBuffer');I am not sure the tests, in general here, are passing either.
The text was updated successfully, but these errors were encountered: