Hey Guys I get the following error when I try to list the indexes. I was able to create the indexes but cannot upsert data. It seems like the issue with the urrlib3. I upgraded it but could not figure our.
‘’’
AttributeError Traceback (most recent call last)
in
----> 1 pinecone.list_indexes()
C:\ProgramData\Anaconda3\lib\site-packages\pinecone\manage.py in list_indexes()
183 “”“Lists all indexes.”“”
184 api_instance = _get_api_instance()
→ 185 response = api_instance.list_indexes()
186 return response
187
C:\ProgramData\Anaconda3\lib\site-packages\pinecone\core\client\api_client.py in call(self, *args, **kwargs)
774
775 “”"
→ 776 return self.callable(self, *args, **kwargs)
777
778 def call_with_http_info(self, **kwargs):
C:\ProgramData\Anaconda3\lib\site-packages\pinecone\core\client\api\index_operations_api.py in __list_indexes(self, **kwargs)
1128 )
1129 kwargs[‘_host_index’] = kwargs.get(‘_host_index’)
→ 1130 return self.call_with_http_info(**kwargs)
1131
1132 self.list_indexes = _Endpoint(
C:\ProgramData\Anaconda3\lib\site-packages\pinecone\core\client\api_client.py in call_with_http_info(self, **kwargs)
836 params[‘header’][‘Content-Type’] = header_list
837
→ 838 return self.api_client.call_api(
839 self.settings[‘endpoint_path’], self.settings[‘http_method’],
840 params[‘path’],
C:\ProgramData\Anaconda3\lib\site-packages\pinecone\core\client\api_client.py in call_api(self, resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, async_req, _return_http_data_only, collection_formats, _preload_content, _request_timeout, _host, _check_type)
411 “”"
412 if not async_req:
→ 413 return self.__call_api(resource_path, method,
414 path_params, query_params, header_params,
415 body, post_params, files,
C:\ProgramData\Anaconda3\lib\site-packages\pinecone\core\client\api_client.py in __call_api(self, resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, _return_http_data_only, collection_formats, _preload_content, _request_timeout, _host, _check_type)
219 if response_type != (file_type,):
220 encoding = “utf-8”
→ 221 content_type = response_data.getheader(‘content-type’)
222 if content_type is not None:
223 match = re.search(r"charset=([a-zA-Z-\d]+)[\s;]?", content_type)
C:\ProgramData\Anaconda3\lib\site-packages\pinecone\core\client\rest.py in getheader(self, name, default)
43 def getheader(self, name, default=None):
44 “”“Returns a given response header.”“”
—> 45 return self.urllib3_response.headers.getheader(name, default)
46
47
AttributeError: ‘HTTPHeaderDict’ object has no attribute ‘getheader’
‘’’