Skip to content

Getting intermittent Error 400, API KEY Expired #167

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

Open
moficodes opened this issue May 8, 2025 · 3 comments
Open

Getting intermittent Error 400, API KEY Expired #167

moficodes opened this issue May 8, 2025 · 3 comments

Comments

@moficodes
Copy link

Device: Macbook Pro M1
OS: Sequioa 15.4.1
version: 0.0.8
model: gemini-2.5-pro-preview-03-25

Error: reading streaming LLM response: Error 400, Message: API key expired. Please renew the API key., Status: INVALID_ARGUMENT, Details: [map[@type:type.googleapis.com/google.rpc.ErrorInfo domain:googleapis.com metadata:map[service:generativelanguage.googleapis.com] reason:API_KEY_INVALID] map[@type:type.googleapis.com/google.rpc.LocalizedMessage locale:en-US message:API key expired. Please renew the API key.]]

I have tested this API key and it works fine generally.

My assumption is its something to do with the rate limit with the free preview model and the error is being caught somewhere else. Could be wrong here.

@droot
Copy link
Member

droot commented May 8, 2025

Thanks @moficodes for reporting it.

Is it possible to take a look at /tmp/kubectl-ai.log or share it here.

@moficodes
Copy link
Author

Dont have this file. I wonder if this gets deleted after or got created somewhere else.

@zvdy
Copy link
Contributor

zvdy commented May 8, 2025

/tmp directory gets deleted (depending on your distribution this varies but usually upon boot)
@moficodes please execute the reproduction of the issue and then share/check the contents of the log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants