## TL;DR

Issue googleapis/python-genai#17 (closed, 20 comments): I am encountering a ClientError: 429 RESOURCE\_EXHAUSTED error when attempting to use the gemini-2.0-flash-exp model with the Google Search tool. How to 429 RESOURCE_EXHAUSTED on first use after a long idle period.

## Steps

1. Issue googleapis/python-genai#17 (closed, 20 comments): I am encountering a `ClientError: 429 RESOURCE_EXHAUSTED` error when attempting to use the `gemini-2.0-flash-exp` model with the Google Search tool. This error occurs immediately upon sending the first message in a chat session, even after a period of approximately 48 hours of inactivity, indicating that this is not a result of exceeding typical usage quotas. Environment: Python, Windows 11, google-genai 0.2.2. Expected Behavior: The `gemini-2.0-flash

## When to use

You are seeing this: This error occurs immediately upon sending the first message in a chat session, even after a period of approximately 48 hours of inactivity, indicating that this is not a result of exceeding typical usage quotas. Use this skill when you run into "429 RESOURCE_EXHAUSTED on first use after a long idle period".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

Versions mentioned in the source: google-genai 0.2.2. If you are on something much newer or older, the details may have shifted.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Sources

- https://github.com/googleapis/python-genai/issues/17
