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

"No license found" after version update #25

Open
zorapeteri opened this issue Jan 10, 2025 · 2 comments
Open

"No license found" after version update #25

zorapeteri opened this issue Jan 10, 2025 · 2 comments

Comments

@zorapeteri
Copy link

We are using barcode4nodejs in a Node project and have recently bumped it from 9.6.47 to 10.0.5. Unfortunately the barcode scanning process is now breaking, with the error message:

InitLicense: Successful.
StartCapturing: [Barcode Reader] [ONED] No license found.

I've double-checked the license code, and with the previous version it works just fine.

If I purposefully change the license code to an invalid one, this is what I get:

InitLicense: [License] [Key 1] The license is invalid.
StartCapturing: [Barcode Reader] No license found. [License] [Key 1] The license is invalid.

The JS code itself doesn't throw an error, just logs this to the console, and gracefully returns an empty array, so since the update we have been assuming that a lot of scanned documents just have no barcodes.

@yushulx
Copy link
Owner

yushulx commented Jan 10, 2025

@zorapeteri Thank you for reaching out and providing detailed information about the issue you're experiencing with barcode4nodejs. It’s possible that the license key needs to be updated for v10. To test this, you can request a new trial license key. Additionally, please contact [email protected] to verify if your current license key is valid for v10. 😃

@yushulx
Copy link
Owner

yushulx commented Jan 13, 2025

@zorapeteri I've made a test.

  • All types: dbr.formats.ALL
    Code:

    dbr.decodeFileAsync("images/test.tif", dbr.formats.ALL, function (err, msg) {
        console.log(msg);
        for (index in msg) {
            result = msg[index];
            console.log('Format: ' + result['format']);
            console.log('Value : ' + result['value']);
            console.log('x1: ' + result['x1']);
            console.log('y1 : ' + result['y1']);
            console.log('x2: ' + result['x2']);
            console.log('y2 : ' + result['y2']);
            console.log('x3: ' + result['x3']);
            console.log('y3: ' + result['y3']);
            console.log('x4: ' + result['x4']);
            console.log('y4: ' + result['y4']);
            console.log('page: ' + result['page']);
            console.log('decoding time: ' + result['time']);
        }
    }, "");

    Output:

    PS D:\code\nodejs-barcode> node test.js
    Windows
    InitLicense: Successful.
    StartCapturing: [Barcode Reader] [ONED] No license found.
    []
  • DataMatrix only: dbr.formats.DATAMATRIX

    Code:

    dbr.decodeFileAsync("images/test.tif", dbr.formats.DATAMATRIX, function (err, msg) {
    console.log(msg);
    for (index in msg) {
        result = msg[index];
        console.log('Format: ' + result['format']);
        console.log('Value : ' + result['value']);
        console.log('x1: ' + result['x1']);
        console.log('y1 : ' + result['y1']);
        console.log('x2: ' + result['x2']);
        console.log('y2 : ' + result['y2']);
        console.log('x3: ' + result['x3']);
        console.log('y3: ' + result['y3']);
        console.log('x4: ' + result['x4']);
        console.log('y4: ' + result['y4']);
        console.log('page: ' + result['page']);
        console.log('decoding time: ' + result['time']);
    } }, "");

    Output:

    Windows
    InitLicense: Successful.
    [
      {
        format: 'DATAMATRIX',
        value: 'www.dynamsoft.com',
        x1: 1002,
        y1: 1349,
        x2: 1157,
        y2: 1349,
        x3: 1157,
        y3: 1504,
        x4: 1002,
        y4: 1504,
        page: 0,
        time: 46,
        angle: 0,
        isMirrored: 0
      }
    ]
    Format: DATAMATRIX
    Value : www.dynamsoft.com
    x1: 1002
    y1 : 1349
    x2: 1157
    y2 : 1349
    x3: 1157
    y3: 1504
    x4: 1002
    y4: 1504
    page: 0
    decoding time: 46

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

2 participants