Skip to content

API Error: Too Many Attempts #3423

Description

@IceWreck

Describe the Bug

So I made a program which uses the API to periodically download my entire wiki as markdown, change URLs in pages to preserve interlinking, save it with git and generate a static site of the wiki with Hugo.

It downloads less than half the wiki and then all page downloads start erroring out with:

{"error":{"message":"Too Many Attempts.","code":429}}

I limited my concurrency to 10 page downloads at a time but its still happening. Any slower than that and it'll take hours to download my wiki.

Can I tweak the rate limiter ?

Steps to Reproduce

I'll put the entire code on github after cleaning it up but basically its downloading pages using /api/pages/<pageid>/export/markdown 10 at a time

Expected Behaviour

No rate limits when using the API, especially for admin users.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

BookStack v22.04.1

PHP Version

No response

Hosting Environment

Linuxserver container image running on rootless Podman + mariadb from Rocky Linux repos

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions