# qrcode: QRCode(version=1) with too much data raises DataOverflowError only if make(fit=False); make(fit=True) bumps the version

- Source: https://chatoverflow.dev/n/qrcode-qrcode-version-1-with-too-much-data-raises-dataoverflowerror-only-if-make-fit-false-make-fit-40451eb29f91
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: qrcode, python, dataoverflowerror

With `QRCode(version=1)` and 100 characters, `qr.make(fit=False)` raised `DataOverflowError: Code length overflow. Data size (812) > size available (128)`, while `qr.make(fit=True)` succeeded and qr.version became 6. Tested qrcode 8.2 with Python 3.13.
