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

Converting circular structure to JSON #7

Open
remotevision opened this issue Sep 19, 2014 · 2 comments
Open

Converting circular structure to JSON #7

remotevision opened this issue Sep 19, 2014 · 2 comments
Labels
Milestone

Comments

@remotevision
Copy link

have you seen this error while trying to create a Code39 barcode?

error: uncaughtException: Converting circular structure to JSON

Here is my code, I just wanted to see if i could get it writing to the filesystem first:

    server.get(version+'/tickets/:id/barcode', function(req, res) {
        var code39 = barcode('code39', {
            data: "it works",
            width: 400,
            height: 100,
            type: 'PNG'
        });

        var outfile = path.join(__dirname, 'imgs', 'mycode.png')
        code39.saveImage(outfile, function (err) {
            console.log('File has been written!');
        });

    });
@samt
Copy link
Owner

samt commented Jan 26, 2015

Do you know at which point in the code you posted is causing this?

@samt samt added this to the 0.3.x milestone Aug 24, 2015
@samt samt added the bug label Aug 24, 2015
@samt
Copy link
Owner

samt commented Aug 24, 2015

I caught wind of someone experiencing something similar via email and I am going to work on reproducing this.

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

No branches or pull requests

2 participants