Empty _monitoring bucket and "partial write error"

When uploading data with python client i get the following error

HTTP response headers: HTTPHeaderDict({'Date': 'Thu, 16 Jun 2022 13:47:08 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '262', 'Connection': 'keep-alive', 'trace-id': 'c6509245b0ab13fc', 'trace-sampled': 'false', 'x-platform-error-code': 'invalid', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains', 'X-Influxdb-Request-ID': 'eab60755e2e77dc994c70d8a69e3bec5', 'X-Influxdb-Build': 'Cloud'})
{"code":"invalid","message":"partial write error (129961 accepted): 13/129974 points rejected; first error: at line 15691:1: invalid character '\\x00' found at start of measurement name (check rejected_points in your _monitoring bucket for further information)"}

When checking the _monitoring bucket its empty.
Any advice on how to locate the bad measurement?

Thanks.

Hello @yuval.schl,
Can you please share your code too? Also, welcome!!!

    def __write_data_to_db(self, data, write_api, write_precision=DEFAULT_WRITE_PRECISION):
        """
        Writes dataset to the DB
        """
        write_api.write(bucket=self.__bucket, org=self.__org, record=data, write_precision=write_precision)

    write_api = client.write_api(
        write_options=WriteOptions(batch_size=5000, flush_interval=10000, write_type=WriteType.synchronous))

The data points are generated in a large system so it’s tricky to get the source function that creates the causing the issue, This is just the code that writes the data.