Open kuri-leo opened 1 week ago
@kuri-leo,
I can see "Invalid operation: Uploading to the File API requires an API key. Please provide a valid API key."
error in the provided error log. Can you please make sure you are passing a valid Gemini API key? Thank you!
@kuri-leo, I can see
"Invalid operation: Uploading to the File API requires an API key. Please provide a valid API key."
error in the provided error log. Can you please make sure you are passing a valid Gemini API key? Thank you!
Hi @singhniraj08 , thanks for your follow-up.
I've verified that my Gemini API key is valid. The same key works perfectly with the RESTful endpoint using the same proxy and also on another server with tproxy.
While the error Proxy Authentication Required
is unexpected here as use and pass have been set in ENV var, that's quite interesting.
Description of the bug:
As user/pass have been set in ENV var as follows:
The uploading API will raise an error from the following code, generated from AI studio:
The full error log as follows:
Actual vs expected behavior:
Go through an http proxy with authentication correctly, but, it fails.
Any other information you'd like to share?
Maybe related issues in upstream:
While everything works fine with these packages alone:
It returns:
And:
it returns