Open pranjalv123 opened 2 weeks ago
Describe the bug
Closing AsyncApiClient.close() calls ApiClient.close(), which calls self.rest_client.pool_manager.clear(), but the async REST client doesn't have a pool_manager.
AsyncApiClient.close()
ApiClient.close()
self.rest_client.pool_manager.clear()
pool_manager
To Reproduce
import datadog_api_client client = datadog_api_client.AsyncApiClient(datadog_api_client.Configuration()) client.close()
Expected behavior The client should close open connections, but we get an AttributeError instead.
AttributeError
Describe the bug
Closing
AsyncApiClient.close()
callsApiClient.close()
, which callsself.rest_client.pool_manager.clear()
, but the async REST client doesn't have apool_manager
.To Reproduce
Expected behavior The client should close open connections, but we get an
AttributeError
instead.