When checking for response status after pinging influxdb, we are currently checking for status code 204, although the site returns a 200 status code.
Also, currently there is no else statement, therefore if we ping the site but instead of returning 200, it returns something else (which is rare, but possible), it will return null.
When checking for response status after pinging influxdb, we are currently checking for status code 204, although the site returns a 200 status code.
Also, currently there is no else statement, therefore if we ping the site but instead of returning 200, it returns something else (which is rare, but possible), it will return null.