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

QR Code Not Generated for Strings of 192 to 217 Characters #6

Open
Revanjin opened this issue Oct 26, 2024 · 0 comments
Open

QR Code Not Generated for Strings of 192 to 217 Characters #6

Revanjin opened this issue Oct 26, 2024 · 0 comments

Comments

@Revanjin
Copy link

We've observed that URLs or strings ranging from 192 to 217 characters fail to generate a QR code. The issue stems from a specific line in the code:

javascript
if(buffer.getLengthInBits()+4<=totalDataCount*8){buffer.put(0,4);}

The error encountered is:
Uncaught (in promise) Error: code length overflow. (1756>1056)

Furthermore, we confirmed this behavior on for example the website Vue QR Code Component. Any input within the specified character range fails to produce a QR code.
I also tested this on Codepen. QR Code Codepen

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

1 participant