Skip to content

[BUG] Error queueing book: 'NoneType' oject is not callable #291

@Ikepuska

Description

@Ikepuska

Bug Description

When attempting to download a book that does not exist on welib, an error is thrown and the download does not occur. It also does not move on to attempting AA.
I have tried this with both the built-in and external cloudflare bypasser, regardless the error is the same.
The current version also doesn't seem to use the ALLOW_USE_WELIB variable at all. The default of true doesn't appear in the logs, and setting the variable doesn't show up in the logs either.

Steps To Reproduce

  1. Find a book that isn't on welib but is with AA. (In my case MD5 is dea3460fc2a6b33133fcca1bdc63b499
  2. Select download, or info
  3. Errors occur in the logs and nothing happens with downloading.

Expected Behavior

The download script determines that there is no available download from welib and moves on to AA and downloads successfully.

Debug Information

Important: Please enable debug mode before submitting a bug report by setting the environment variable:

DEBUG=true

_calibre-web-automated-calibre-web-automated-downloader-1_logs.txt
When running in debug mode, a DEBUG button will appear in the interface. Please click this button to generate a debug zip file and attach it to this issue.

Environment Information

  • BASE OS: [e.g. Windows 10, Ubuntu 22.04]
  • Proxmox VE running on an AMD platform

docker-compose

flaresolverr:
depends_on:
- calibre-web-automated
image: ghcr.io/flaresolverr/flaresolverr:latest
calibre-web-automated-downloader:
depends_on:
- calibre-web-automated
- flaresolverr
image: ghcr.io/calibrain/calibre-web-automated-book-downloader-extbp:latest
environment:
FLASK_PORT: 8084
LOG_LEVEL: debug
BOOK_LANGUAGE: en
ALLOW_USE_WELIB: false
TZ: America/New_York
APP_ENV: prod
UID: 1000
GID: 100
CWA_DB_PATH: /auth/app.db
EXT_BYPASSER_URL: http://flaresolverr:8191
ports:
- 8084:8084
restart: unless-stopped
volumes:
# This is where the books will be downloaded to, usually it would be
# the same as whatever you gave in "calibre-web-automated"
- /calibreweb/cwa-book-ingest:/cwa-book-ingest
# This is the location of CWA's app.db, which contains authentication
# details
- /calibreweb/config/app.db:/auth/app.db:ro

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions