Skip to content

deps: flask_limiter v4 Limiter does not accept auto_check kwarg #3579

@chapmanjacobd

Description

@chapmanjacobd

Describe the bug/problem

TypeError: Limiter.__init__() got an unexpected keyword argument 'auto_check'
root@u24-cweb2:~# systemctl status calibre-web.service | more
× calibre-web.service - Calibre-Web
     Loaded: loaded (/etc/systemd/system/calibre-web.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Thu 2026-02-12 15:38:10 EST; 2min
58s ago
   Duration: 905ms
    Process: 25092 ExecStart=/usr/local/calibre-web-py3/bin/python3 /usr/local/calibre-web-py3/cps.py -p /library/calibre-web/config/app.db (code=exited, status=1/FAILURE)
   Main PID: 25092 (code=exited, status=1/FAILURE)
        CPU: 875ms
Feb 12 15:38:10 box systemd[1]: Started calibre-web.service - Calibre-Web.
Feb 12 15:38:10 box python3[25092]: Traceback (most recent call last):
Feb 12 15:38:10 box python3[25092]:   File "/usr/local/calibre-web-py3/cps.py",
line 28, in <module>
Feb 12 15:38:10 box python3[25092]:     from cps.main import main
Feb 12 15:38:10 box python3[25092]:   File "/usr/local/calibre-web-py3/cps/__init__.py", line 114, in <module>
Feb 12 15:38:10 box python3[25092]:     limiter = Limiter(key_func=True, headers_enabled=True, auto_check=False, swallow_errors=False)
Feb 12 15:38:10 box python3[25092]:               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 12 15:38:10 box python3[25092]: TypeError: Limiter.__init__() got an unexpected keyword argument 'auto_check'
Feb 12 15:38:10 box systemd[1]: calibre-web.service: Main process exited, code=exited, status=1/FAILURE
Feb 12 15:38:10 box systemd[1]: calibre-web.service: Failed with result 'exit-code'.

iiab#352
iiab#355

To Reproduce

Steps to reproduce the behavior:

  1. Install latest requirements.txt
  2. Start cps.py
  3. See error

Environment (please complete the following information):

  • OS: ubuntu 24.04
  • Python version: 3.12
  • Calibre-Web version: b64645e
  • Docker container: None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions