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
Steps to reproduce:
List the minimal actions needed to reproduce the behavior.
Create influxdbclient instance without influx backend running
Run instance.ping() method within a try:... except: block.
Observe ERROR logged.
Expected behavior:
Error should be raised instead of logged, or ping should simply return false is connection cannot be created.
Actual behavior:
Error is logged when connection cannot be created.
influxdb_client.client.influxdb_client| Unexpected error during /ping: <urllib3.connection.HTTPConnection object at 0x7fd486f43f50>: Failed to establish a new connection: [Errno 111]
Connection refused
Specifications:
Client Version: influxdb-client 1.24.0
InfluxDB Version: 1.8
Platform: Ubuntu 18.04
The text was updated successfully, but these errors were encountered:
Hi there! maybe I don't have the same design mindset. I would expect a client that I am writing into a larger piece of software to throw exceptions and let the caller deal with logging. In this specific case, I am using ping to confirm that influx is available. And if it is not, then it is not an error in my application. If ping is a check which should return true or false depending on the state of the influxdb instance, I would assume it returns false, and not log an error. Does that make sense?
Steps to reproduce:
List the minimal actions needed to reproduce the behavior.
Expected behavior:
Error should be raised instead of logged, or ping should simply return false is connection cannot be created.
Actual behavior:
Error is logged when connection cannot be created.
influxdb_client.client.influxdb_client| Unexpected error during /ping: <urllib3.connection.HTTPConnection object at 0x7fd486f43f50>: Failed to establish a new connection: [Errno 111]
Connection refused
Specifications:
The text was updated successfully, but these errors were encountered: