I’m getting this error consistently for the past few days:
line 102, in raise_for_response raise ServerError(status_code, response)google.genai.errors.ServerError: 500 INTERNAL. {'error': {'code': 500, 'message': 'An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting', 'status': 'INTERNAL'}}(env)
I traced the error down to the model I’m using. Using gemini-1.5-pro, it works. Using gemini-2.0-pro-exp-02-05, it gives the 500 error. This program uses large files, but the files are under the token limit. If I use AI Studio with the same prompts and files, it works.
I can provide the files and code privately to a Googler to replicate it.