-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upload_file returns 0 byte file with no mime_type (high severity) #628
Comments
We are seeing this as well (also Hi Mike!) |
Same issue here, even manually setting the mime_type doesn't do anything |
Even the example notebooks on Gemini docs are broken |
same here. |
Following up for visibility. I reached out on Twitter and got a response, so they should be aware. |
+1 seeing this as well. my errors started with a generic 400:
after digging around a bit and changing some params, i'm now seeing this for every content gen call that includes a file:
i'm uploading with an explicit mime-type:
sample file response
|
is this only happening with the python SDK? can we call the API directly as a temp fix here? |
failing with the node sdk as well @adboio |
related post on google cloud forums: https://www.googlecloudcommunity.com/gc/AI-ML/Gemini-API-method-models-generateContent-returns-error-code-400/m-p/831749 and issue in another repo GoogleCloudPlatform/generative-ai#1390 |
So happy to not just be the only one. Who changed the server side of file_upload? |
found a potential workaround! 🚀 instead of calling
edit: welp, this only works up to a limit...
|
I'm having the same issue |
my use-case is for video files, and the workaround i posted above does not work if the files are too large... i tried splitting the file into multiple parts and uploading the blobs individually (like |
My work around is to wait. Is this the first major outage of this beautiful product? |
It is fixed. Well done GOOGLE! |
working for me now too! |
It’s finally working again! But, Why? |
Hey! We rolled out a fix for this issue, apologies for the delay. I am going to also get a status page setup to make it easier to follow this stuff in the future. |
Description of the bug:
genai.upload_file(path=path, mime_type=mime_type)
Any code that was once working downstream of this, including
generate_content
now failsLooks like this was from a production push? Started today 11/11/24 around noon PDT.
Also #627 likely related
Actual vs expected behavior:
Expected: a file with proper
size_bytes
andmime_type
Actual:
size_bytes
always zero andmime_type
always''
Any other information you'd like to share?
Looks like this was from a production push? Started today 11/11/24 around noon PDT.
Also #627 likely related
The text was updated successfully, but these errors were encountered: