Skip to content

Flaky test_static_handler_raised_throttled_error_is_deferred #2271

Closed

Description

@vdusek

test_static_handler_raised_throttled_error_is_deferred fails on slow runners. The handler sets a 50 ms backoff and raises RequestThrottledError, but by the time the crawler calls is_throttled() the backoff can already be over. The error is then treated as an ordinary one and the crawler falls back to the browser.

Failed run (macOS, Python 3.11): https://github.com/apify/crawlee-python/actions/runs/37274209355/job/111647535443

✍️ Drafted by Claude Code

Activity

  1. added
    bugSomething isn't working.
    t-toolingIssues with this label are in the ownership of the tooling team.
    on Oct 5, 2026
  2. self-assigned this
    on Oct 5, 2026
  3. added a commit that references this issue on Oct 5, 2026
    d22ef78
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions