Skip to content

/asyncquery: Retry(method_whitelist=...) was removed in urllib3 2.0 #399

Description

@gaurav

node_normalizer/server.py:225 constructs a retry policy with Retry(method_whitelist=...). That keyword was deprecated in urllib3 1.26 (renamed to allowed_methods) and removed in urllib3 2.0, where it raises TypeError.

If the callback path is exercised under a urllib3 >= 2.0 environment, posting the async result to the caller's callback URL will fail.

Noticed while auditing the API documentation; not fixed there because it is a code bug rather than a doc bug. Note that /asyncquery is itself deprecated (#323), so 'delete the endpoint' may be a legitimate resolution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions