Skip to content

Command "repository add" raises "Client.Timeout or context cancellation while reading body" #12952

@jesuspv

Description

@jesuspv

Dear helm developers,

we are suffering timeouts on helm repository add commands of the form:

Error: looks like "https://<some-repository-url-here>" is not a valid chart repository or cannot be reached: context deadline exceeded (Client.Timeout or context cancellation while reading body)

I have seen that the code in #pkg/getter has a 120s timeout for such task, which seems not enough when facing slow networks or large repositories (ours have more than 200MB in metadata).

I was wondering whether or not there is a way to configure such timeout or any hope to have it implemented.

Please, let me know if you need any additional info.

Thank you very much in advance
/J

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCategorizes issue or PR as related to a bug.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions