Urgent Help Needed: Gemini API 500 Error in Flutter App

Dear community,

I’m encountering a critical issue with the Gemini API in my Flutter application:

  1. Implementation Details:
  1. Error Description:
  1. Troubleshooting Attempts:
  • Unable to identify the specific cause
  • Considering the possibility of exceeding API call limits
  1. Questions:
  • If it’s a rate limiting issue, when can we expect it to resolve?
  • What are the recommended steps to address this problem?
  • Are there any known issues or maintenance activities affecting the API?

Any insights or suggestions would be greatly appreciated. This issue is significantly impacting our application’s functionality.

Thank you in advance for your help.

I will help you in the morning. Kind regards

Welcome to the forums!

500 errors are always tricky to diagnose - sometimes it truly is Google’s error (and we don’t have a status board yet), while sometimes you’re doing something… let’s say unexpected.

Do you have a minimal example that is causing the problem? Have you just done a simple prompt and response to see if that is triggering it? If it is - it is likely Google’s issue. If you’re doing something else, it is possible you’re sending data in an unexpected way.

Either way - seeing the minimal example and the code would go a long way to figuring it out.

The daily quota resets at midnight US Pacific time. (Currently UTC-0700)

The first big step is showing a minimal example that illustrates the problem.

You can also report the problem using the “Send Feedback” menu item under the three dots in the upper right hand corner of AI Studio.

Unfortunately, we don’t have a status page, so unless they’ve posted about it here - we don’t know.

Good luck!

у меня тоже также с API то что работало месяцами перестал работать, выдает ошибку:
Ошибка: запрос API не удался. Сообщение об ошибке: An internal error has occurred. Please retry or report in Troubleshooting guide  |  Gemini API  |  Google for Developers
или
[error] => Array
(
[code] => 500
[message] => An internal error has occurred. Please retry or report in Troubleshooting guide  |  Gemini API  |  Google for Developers
[status] => INTERNAL
)

а все заработало

Having 500 for all my request with free API key via package. Getting 1 reply in 1-2 hour and than 500 again. 3 days ago was all good

same here, but with calling the free API from an Android app. Gemini 1.5 Pro just keeps returning error code 500, while 1.5 Flash works! It might be related to an update they’re rolling out today (rumours say it’s Gemini 2.0 model availability)

1 Like

Is there a minimal demonstration of the problem that you can share? A lot of people are seeing similar issues, but having an understanding if there is something specific that is causing this might help us figure out what is going on.