Skip to content

Code length overflow #390

@1848

Description

@1848

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions