Skip to content

urllib3 v2.0.3 Deprecation Warnings on HTTPResponse.getheader() and HTTPResponse.getheaders() #602

Closed
@swssl

Description

@swssl

Specifications

  • Client Version: 1.37.0
  • InfluxDB Version: 2.0.0
  • Platform: InfluxDB Cloud

Code sample to reproduce problem

Every call of HTTPResponse.getheader() and HTTPResponse.getheaders().

Expected behavior

Work without Deprecation Warnings.

Actual behavior

The following warnings are raised:

  • HTTPResponse.getheader() is deprecated and will be removed in urllib3 v2.1.0. Instead use HTTPResponse.headers.get(name, default).
  • HTTPResponse.getheaders() is deprecated and will be removed in urllib3 v2.1.0. Instead access HTTPResponse.headers directly.

Additional info

See https://github.com/urllib3/urllib3/blob/53368dfe6609aec8f3d933b62021cf568f24b794/src/urllib3/response.py#L478C6-L478C6 for warning origin.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions