google-gemini / generative-ai-python

The official Python library for the Google Gemini API
https://pypi.org/project/google-generativeai/
Apache License 2.0
1.62k stars 322 forks source link

generative-ai-python/samples/rest /files.sh fails with INVALID_ARGUMENT response starting between 9AM and 2PM Pacific on 2024-11-11 #627

Closed jxyzn closed 1 week ago

jxyzn commented 1 week ago

Description of the bug:

Running this same script with a previously function API key results in { "error": { "code": 400, "message": "Request contains an invalid argument.", "status": "INVALID_ARGUMENT" } }

I have records of proper results from my code using the API before ~9:02 AM today. My next attempt at using this same API occurred at 1:54PM and returned this error. In attempting to figure out what happened, I resorted to trying this sample script which I'd based my processing on. It is now returning this same error.

Actual vs expected behavior:

A proper response from the test query.

Any other information you'd like to share?

This API key is still functional; other (text-only, no upload) prompt give appropriate results.

adboio commented 1 week ago

+1 seeing this issue - commented on #628 with details

jxyzn commented 1 week ago

This was the same issue as 628, which has been closed. Closing this.