-
-
Notifications
You must be signed in to change notification settings - Fork 973
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
QR code parse error, error = R: No MultiFormat Readers were able to detect the code. #202
Comments
you should provide more info to solve your issue |
that all i am doing, blazorPageReference is used becuase i am hosting this in Blazor WASM Project, and i do get message. |
you should wait until html5Qrcode is created and ready. |
What am i doing before the html5Qrcode is ready ? new Html5Qrcode(barCodeScanner) does not have ready/then. |
did you put your code once the window loaded and document ready? |
Yes, the code is being called from button click event manually way after page has loaded. |
proceed by commenting your code step by step. |
@nssidhu Can you try this on the latest published library i.e. with version https://github.com/mebjas/html5-qrcode/releases/tag/V2.0.3 |
I have the same problem as nssidhu. I'm using the latest version of the library and have tested it in Chrome, Firefox and Safari. Unfortunately I get the same error in the console in an infinite loop. This is how I'm using it:
|
Is this reproducible for the demo as well? https://blog.minhazav.dev/research/html5-qrcode (I cannot repro this issue on Chrome with the demo page) |
There are no errors on the demo page with Chrome, Firefox and Safari. |
@rodinator47 Thanks for verifying. I just published version 2.0.4. Would you be able to see if the issue is reproducible on the latest version? |
It's still printing the errors in the console. There is just an additional object logged after the error message:
|
I able to reproduce this issue, thanks for sharing more information. Working on finding root cause, will publish a fix asap. |
Found the root case, it was due to Created this PR: #208 Would you be able to verify with this script on your end as well if the issue is resolved: https://raw.githubusercontent.com/mebjas/html5-qrcode/issue_202/dist/html5-qrcode.min.js |
It works! There are no errors in the console anymore. |
Thanks for verification. The fix has been merged & released to npm and Github release. |
I am still getting this error as well. Though I am using https://raw.githubusercontent.com/mebjas/html5-qrcode/master/minified/html5-qrcode.min.js
See image of the console : Can you please help? |
This should be because you are using Try <script src="{{ asset('js/html5-qrcode.min.js') }}"></script>
<script>
function onScanSuccess(decodedText, decodedResult) {
console.log(`Scan result: ${decodedText}`, decodedResult);
document.getElementById("barcode").value = decodedResult;
}
setTimeout( () => {
let html5QrcodeScanner = new Html5QrcodeScanner(
"reader", { fps: 10, qrbox: 250 });
html5QrcodeScanner.render(onScanSuccess);
}, 1000)
</script> |
Error repeats |
@mebjas , |
Does this mean it's not necessary to use |
I got this error "qr code parse error error = r no multiformat readers were able to detect the code" when I scan a 2D data matrix or a barcode, but it works well for QR My code is as the below lines: <title>QR Code Validation System</title>
Also, Can I explicitly declare a 2D scanning format? |
add useBarCodeDetectorIfSupported: true in your constructor. |
Thank you for your response, it works well, but still I cannot scan a small shape (9mm*9mm), can I configure a qrbox to read this small dimension |
add |
I added the below statements but this didn't help in capturing the small shape (9mm*9mm) `<script type="text/javascript">
|
so you qr code is too small and/or bad quality. did you try it at scanapp.org? |
Yes, 2D data matrix dimensions is (9mm * 9mm) and I tried it at scanapp.org with no success |
so forget it.... |
If so, what are the alternatives I can go to |
dunno, |
I keep getting this error in my React component as soon the page is rendered.. Based on this thread, should I not use the
|
comment all code inside onScanFailure as it fires every frame.... a message error will appear out of onScanFailure if it's not a success. |
i keep getting this QR code parse error, error = NotFoundException: No MultiFormat Readers were able to detect the code. can any one help ? this is what i install "html5-qrcode": "^2.3.8", |
Sorry, what do you mean "a message error will appear out of onScanFailure if it's not a success." |
I am getting this error is the browser console. and it is in infinite loop, thousands of them.
Testing on Google chrome desktop browser.
The text was updated successfully, but these errors were encountered: