NOTE: THIS IS AN ERROR WITH GEMINI FLASH LITE 3.1
sometimes I get errors like this one:
google.genai.errors.ClientError: 400 INVALID_ARGUMENT. {‘error’: {‘code’: 400, ‘message’: “Error on line 393: invalid JSON, near column 1: unexpected character: ‘\x00’; expected ‘{’”, ‘status’: ‘INVALID_ARGUMENT’}}
but i’m sure it’s not wrong for these reasons:
first: I checked with this command:
grep -P -n ‘\x00’ data/xxx/batch_jobs/crawled-notices-2018-03-21-to-2023-03-20-top-companies-excluded_*.batch.jsonl
second: this error only happens with gemini-flash-lite (i had got the same with 2.5)