Scanning barcode is broken
See original GitHub issueWhenever 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:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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,
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…