Skip to content

Deprecation warning about urllib3 HTTPResponse.getheaders() #2024

Closed

Description

@jaypipes

How to reproduce it (as minimally and precisely as possible):

We use the fabulous Kubernetes python client in the AWS Controllers for Kubernetes e2e test framework.

I've noticed a deprecation warning around the use of urllib3's HTTPResponse.getheaders() method:

DeprecationWarning: HTTPResponse.getheaders() is deprecated and will be removed in urllib3 v2.1.0. Instead access HTTPResponse.headers directly.

Easy enough fix so I submitted a pull request to address it.

Activity

  1. added
    kind/bugCategorizes issue or PR as related to a bug.
    on Mar 3, 2023
  2. roycaihw commented on Mar 13, 2023

    @roycaihw
    Member

    /assign @jaypipes

  3. jaypipes commented on Mar 14, 2023

    @jaypipes
    Author

    Hmmm, after doing some more investigation, looks like upstream urllib3's v2.0 release is significantly delayed (was supposed to be released in 2021). I think at least for the immediate future, it would be better for us to just silence the specific deprecation warning on our (ACK's) side.

  4. sergiitk commented on May 31, 2023

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

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions