Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Empty response from GEMINI API

 

hello,

since yesterday 4PM,
Gemini Api send me an empty response or various error message as:
1) API KEY INVALID (its valid, I tried it more times and status is ok ..)
2) INTERNAL SERVER ERROR
more of time, status code is 200 but candidates and text part is missing,
here is an example from response received by Gemini Api;
{
"candidates": [
{
"finishReason": "OTHER",
"index": 0
}
],
"promptFeedback": {
"safetyRatings": [
{
"category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
"probability": "NEGLIGIBLE"
},
{
"category": "HARM_CATEGORY_HATE_SPEECH",
"probability": "NEGLIGIBLE"
},
{
"category": "HARM_CATEGORY_HARASSMENT",
"probability": "NEGLIGIBLE"
},
{
"category": "HARM_CATEGORY_DANGEROUS_CONTENT",
"probability": "NEGLIGIBLE"
}
]
}
}

why this happen? and how can I fix it?
I think it's a problem from gemini right? or am I wrong?

I use this api since 3 weeks with same prompt and same key, but actually since yesterday, I have only empty or error messages...

edit: I see this error on my api service health dashboard: delayed or missing logs in BigQuery export

this error can be affected gemini ai response?

thank you for your assistance

2 4 5,737
4 REPLIES 4