Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack overflow with cycles. #76

Open
dankelleher opened this issue Mar 23, 2018 · 1 comment
Open

Stack overflow with cycles. #76

dankelleher opened this issue Mar 23, 2018 · 1 comment

Comments

@dankelleher
Copy link

It looks like this issue has re-appeared. Minimal use case:

const loggly = require("loggly");

const client = loggly.createClient({
  token: <loggly-token>,
  subdomain: <subdomain>
});

const circular = { a : "123"};
circular.b = circular;

client.log(circular);

gives:

RangeError: Maximum call stack size exceeded
    at Object.common.serialize (/.../tmp-loggly-testcase/node_modules/loggly/lib/loggly/common.js:154:29)
    at Object.common.serialize (/.../tmp-loggly-testcase/node_modules/loggly/lib/loggly/common.js:187:21)
    at Object.common.serialize (/.../tmp-loggly-testcase/node_modules/loggly/lib/loggly/common.js:187:21)
dankelleher added a commit to dankelleher/node-loggly that referenced this issue Mar 23, 2018
dankelleher added a commit to dankelleher/node-loggly that referenced this issue Mar 23, 2018
@dankelleher
Copy link
Author

PR here: #77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant