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

Code length overflow #390

Open
1848 opened this issue Jan 2, 2025 · 0 comments
Open

Code length overflow #390

1848 opened this issue Jan 2, 2025 · 0 comments

Comments

@1848
Copy link

1848 commented Jan 2, 2025

I am getting a DataOverflowError: Code length overflow. Data size (132) > size available (128)
when using the following code.

qr = qrcode.QRCode(version=2, error_correction=qrcode.ERROR_CORRECT_H, box_size=10, border=4)
# 15 chars
qr.add_data("sdfdsfnfffffnsd")
qr.make(fit=False)

The capacity of version 2 with H should be 128bits. I am trying to add 15 chars (15*8 => 120 bits).
I guess I am missing something?

Using qrcode v8 with python 3.10.

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