Traceback (most recent call last):
File "py.py", line 11, in <module>
client.write_points(json_body)
File "/usr/local/lib/python3.8/dist-packages/influxdb/client.py", line 603, in write_points
return self._write_points(points=points,
File "/usr/local/lib/python3.8/dist-packages/influxdb/client.py", line 681, in _write_points
self.write(
File "/usr/local/lib/python3.8/dist-packages/influxdb/client.py", line 413, in write
self.request(
File "/usr/local/lib/python3.8/dist-packages/influxdb/client.py", line 378, in request
raise InfluxDBClientError(err_msg, response.status_code)
influxdb.exceptions.InfluxDBClientError: 400: {"error":"database is required"}