barcode icon indicating copy to clipboard operation
barcode copied to clipboard

Converting circular structure to JSON

Open remotevision opened this issue 11 years ago • 2 comments

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!');
        });

    });

remotevision avatar Sep 19 '14 01:09 remotevision

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

samt avatar Jan 26 '15 22:01 samt

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

samt avatar Aug 24 '15 16:08 samt