You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DeprecationWarning: HTTPResponse.getheader() is deprecated #125
/path-to-environment/lib/python3.8/site-packages/pinecone/core/client/rest.py:45: DeprecationWarning: HTTPResponse.getheader() is deprecated and will be removed in urllib3 v2.1.0. Instead use HTTResponse.headers.get(name, default).
I can see in the source code the following:
classRESTResponse(io.IOBase):
# ...defgetheader(self, name, default=None):
"""Returns a given response header."""returnself.urllib3_response.getheader(name, default)
The warnings are very frequent, and the fix at first glance seems rather easy.
Lib Version
2.1.0
OS/Hardware
Mac OS Monterey 12.0.1 / Apple M1 Macbook Pro
Activity
gdj0nes commentedon Feb 1, 2023
Thanks for calling this to our attention! We'll get this added to an upcoming release.
liorgreenbergmh commentedon Aug 9, 2023
This issue still happens in 2.2.2
Replace deprecated HTTPResponse.getheader()
Replace deprecated HTTPResponse.getheader() (#195)
daverigby commentedon May 3, 2024
This was fixed in v2.2.3 via: f6bda12
feat(assistant)!: one ASSISTANT_API_VERSION at 2026-07 (pinecone-io#93)…
feat(assistants)!: 2026-07 file lifecycle — 202/OperationModel, multi…
feat(assistant)!: async file lifecycle rework + operations API (pinec…