Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Code length overflow #390

Open
Open
@1848

Description

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

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /