Fix the problem that username and password authentication is mandatory in Influxdb v1 write API.