Skip to content

[Bug]: Barcode comes in as object Object on some items... #527

Description

@GitGatGone

Binner version

v2.6.25

Operating System

Woindows 11 x64

Describe the bug and the steps to reproduce it

I have 2 items with vendor barcodes that read fine on my scanner - i.e., I can see the alphanumeric part number on the scanner's screen - but it shows up in binner as object Object, presumably because your JavaScript code is trying to print the entire data structure directly to the screen instead of extracting the text value from it? Below is an example of one of the items showing what comes in alright and what comes in as object Object

Using tools / barcode scanner, this item comes in fine

{
"type": "code128",
"labelType": "Unknown",
"vendor": "Unknown",
"value": "691781395173",
"correctedValue": "691781395173\r",
"rawValue": "691781395173\r",
"length": 13,
"rsDetected": false,
"gsDetected": false,
"eotDetected": false,
"invalidBarcodeDetected": false,
"rawValueFormatted": "691781395173␍"
}

Using tools / barcode scanner, this item comes in as object Object

{
"type": "code128",
"labelType": "part",
"vendor": "Generic 1D",
"value": {
"versionNumber": "434-2503"
},
"correctedValue": "VG434-2503\r",
"rawValue": "VG434-2503\r",
"length": 11,
"rsDetected": false,
"gsDetected": false,
"eotDetected": false,
"invalidBarcodeDetected": false,
"rawValueFormatted": "VG434-2503␍"
}

Would you like to attach your appsetings.json configuration?

I have not made any changes to appsetting.json

Screenshots or Videos (Optional, but they help!)

Image

Are you able to contribute a PR? (No is ok!)

No, because I do not know how

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions