Skip to content

AttributeError: 'HTTPResponse' object has no attribute 'getheader'Β #460

@purificant

Description

@purificant

As of urllib3 2.6.0, the deprecated HTTPResponse.getheaders() and HTTPResponse.getheader() methods have been removed and replaced by the headers attribute. ( https://github.com/urllib3/urllib3/blob/main/CHANGES.rst#260-2025-12-05 )

Both of the removed methods are used in the auto generated api client, for example: https://github.com/HubSpot/hubspot-api-python/blob/master/hubspot/crm/companies/api_client.py

The code needs to be updated to be compatible with the latest version of urllib3 in order to benefit from the bug and security fixes. Any chance this could be patched?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions