Python SDK generate_content_async error

grpc.aio._call.AioRpcError: <AioRpcError of RPC that terminated with:
status = StatusCode.INTERNAL
details = “An internal error has occurred. Please retry or report in Troubleshooting guide  |  Gemini API  |  Google AI for Developers
debug_error_string = "UNKNOWN:Error received from peer ipv4:95.164.110.85:9057 {created_time:“2024-10-14T11:30:13.831432398+07:00”, grpc_status:13, grpc_message:"An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting"}"

Error raises while trying generate content with attached file (‘audio/ogg’). For audio/mpeg, audio/aac works good. What might coz it ?

Welcome to the forums!

OGG is listed as a valid format, but there is always the possibility that something about the audio may be causing problems.

How are you attaching the file? Via inline data or file data that you’ve uploaded through the File API first.

Hi, only file formats that work are aac and mp3, btw in gemini docs there is misspelling mime type for MP3 not audio/mp3, but audio/mpeg.

I’m uploading file with API like FileData, file uploading itself working good. But then while attached Gemini always throughs same error for ogg, aiff, wav, flac. Only aac and mp3 works fine