question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scanning barcode is broken

See original GitHub issue

Whenever I am clicking on the photo icon in the barcode field to scan a barcode, the popup shows up but nothing work and I get this error in the console:

Error: enumerateDevices is not defined
    at r (quagga.min.js?v=2.7.1:1)
    at Object.u [as enumerateVideoDevices] (quagga.min.js?v=2.7.1:1)
    at HTMLAnchorElement.<anonymous> (barcodescanner.js?v=2.7.1:253)
    at HTMLDocument.dispatch (jquery.min.js?v=2.7.1:2)
    at HTMLDocument.v.handle (jquery.min.js?v=2.7.1:2)

When I try to close the window with cancel or X I get this error:

Uncaught TypeError: Cannot read property 'type' of undefined
    at Object.stop (quagga.min.js?v=2.7.1:1)
    at Object.Grocy.Components.BarcodeScanner.StopScanning (barcodescanner.js?v=2.7.1:135)
    at k.fn.init.onEscape (barcodescanner.js?v=2.7.1:223)
    at k (bootbox.min.js?v=2.7.1:6)
    at HTMLButtonElement.<anonymous> (bootbox.min.js?v=2.7.1:6)
    at HTMLDivElement.dispatch (jquery.min.js?v=2.7.1:2)
    at HTMLDivElement.v.handle (jquery.min.js?v=2.7.1:2)

The lightbulb button (that I don’t know what is supposed to be since I just started using Grocy) does not do anything, no error.

I am running version 2.7.1, installed on Unraid. I tried with Brave v1.8.96, Firefox v76.0.1 and Brave Mobile v1.8.112

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jstebennecommented, May 18, 2020

That was the problem, I was connected through HTTP. Once I got in with HTTPS it started working on my laptop. For some reason I was not getting any message telling me I should connect through HTTPS.

However, on Brave Mobile I get the permission popup for the camera, but when I tap on Allow or Block, nothing happens. I had to manually allow the camera to be used in the browser settings. It worked without problem on Firefox Mobile,

0reactions
berrndcommented, May 18, 2020

Great that it works now. But yes, that’s very browser specific, so would need to be tested with every browser to support it and handle errors in each specific way…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reading Damaged Barcodes | Dynamsoft Blog
How to Read Damaged 1D Barcodes ... Barcodes represented data by varying the widths and spacings of parallel lines. If the lines are...
Read more >
Can you scan a damaged barcode? - Quora
It depends on the barcode and how much damage there is. QR codes have error-correcting codes and parts of the code can be...
Read more >
Why Aren't My Barcodes Scanning? 3 Common Problems ...
If your scan issues aren't consistent, or you can otherwise confirm your scanner is set-up to read your barcodes, you may not be...
Read more >
How to Fix Barcodes that Won't Scan - Industritag Blog
When barcodes are exposed to harsh conditions, they can become damaged due to fading, smudging, or abrasion, making them unreadable.
Read more >
Having Problems Reading Your Barcodes? Here's How to Fix It
Poor label placement · Poor barcode/scanner position · Damaged barcodes · Insufficient contrast · Quiet zone infractions · Inconsistent printout.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found