File API Unexpected 400 error in response stream

I am trying to upload a jsonl file for batch processing in the File API. Unfortunately, the file is never returned in the API response. Instead I get the following response:
{‘headers’: {‘content-type’: ‘application/json; charset=UTF-8’, ‘x-guploader-uploadid’: ‘XXX’, ‘x-goog-upload-status’: ‘final’, ‘vary’: ‘Origin, X-Origin, Referer’, ‘content-length’: ‘118’, ‘date’: ‘Sun, 09 Nov 2025 11:30:44 GMT’, ‘server’: ‘UploadServer’, ‘alt-svc’: ‘h3=“:443”; ma=2592000,h3-29=“:443”; ma=2592000’}, ‘status_code’: 200, ‘response_stream’: [‘{\n “error”: {\n “code”: 400,\n “message”: “Unsupported MIME type: jsonl”,\n “status”: “INVALID_ARGUMENT”\n }\n}\n’], ‘byte_stream’: None}

I couldn’t find any invalid arguments in my jsonl and uploading it as json gave the same error. I also tried the example code from the documentation which also didn’t work. Is this an issue on Google’s part?

Hi @Michiel_Pronk
Welcome to Google AI Forum!!

Thank you for bringing this to our attention. Could you please share the full payload details along with a sample of the code that you are using? We would like to reproduce the issue.