Skip to content

[Http client] Confusing 'max_retries' entry #21434

@hellomedia

Description

@hellomedia

In the http_client configuration doc, it seems at first glance that max_retries is a direct child of http_client :

framework.http_client.max_retries

But this config

framework:
    http_client:
        max_retries: 3

gives me this error

Unrecognized option "max_retries" under "framework.http_client".

It seems that max_retries lives under retry_failed instead

$ bin/console debug:config framework

    http_client:
        default_options:
            retry_failed:
                enabled: false
                retry_strategy: null
                http_codes: {  }
                max_retries: 3
                delay: 1000
                multiplier: 2
                max_delay: 0
                jitter: 0.1

This part in the doc hints to the right placement, but isn't it a bit confusing ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrameworkBundleHttpClientgood first issueIdeal for your first contribution! (some Symfony experience may be required)help wantedIssues and PRs which are looking for volunteers to complete them.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions