InfluxDBCClientError 400

I am setting up a solar charge controller system based on GitHub - fatyogi/epever-upower-tracer: Linux/Raspberry monitoring scripts for EPsolar UPower hybrid invertors and EPever Tracer charge controllers but the setup only worked for a few hours then i started getting this error.

pi@pi:~/epever-upower-tracer$ python3
[{'measurement': 'solar', 'time': datetime.datetime(2022, 12, 1, 6, 1, 51, 191670), 'fields': {'PVvolt': 28.59, 'PVamps': 14.02, 'PVwatt': 400.48, 'PVkwh': 125.76, 'PVkwh2d': 0.3, 'BAvolt': 13.21, 'BAperc0.43, 'DCvolt': 13.21, 'DCamps': 1.09, 'DCwatt': 13.6, 'DCkwh': 20.5, 'DCkwh2d': 0.15}}]
Traceback (most recent call last):
  File "/home/pi/epever-upower-tracer/", line 61, in <module>
  File "/home/pi/.local/lib/python3.10/site-packages/influxdb/", line 603, in write_points
    return self._write_points(points=points,
  File "/home/pi/.local/lib/python3.10/site-packages/influxdb/", line 681, in _write_points
  File "/home/pi/.local/lib/python3.10/site-packages/influxdb/", line 413, in write
  File "/home/pi/.local/lib/python3.10/site-packages/influxdb/", line 378, in request
    raise InfluxDBClientError(err_msg, response.status_code)
influxdb.exceptions.InfluxDBClientError: 400: {"error":"partial write: field type conflict: input field \"PVamps\" on measurement \"solar\" is type float, already exists as type integer dropped=1"}