# File api always PROCESSING

**URL:** <https://discuss.ai.google.dev/t/file-api-always-processing/85107>\
**Category:** Gemini API\
**Tags:** api, generative-ai\
**Created:** [May 25, 2025, 8:06am UTC](https://discuss.ai.google.dev/t/file-api-always-processing/85107 "2025-05-25T08:06:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user1958](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/user1958/32/32000_2.png) [@user1958](https://discuss.ai.google.dev/u/user1958)\
**Post date:** [May 25, 2025, 8:06am UTC](https://discuss.ai.google.dev/t/file-api-always-processing/85107/1 "2025-05-25T08:06:13Z")

</div>

I recently received the following error: google.genai.errors.ClientError: 400 FAILED\_PRECONDITION." {‘error’: {‘code’: 400, ‘message’: ‘The file laxcbdgggxx7 is not in an active state, and usage is not allowed’, ‘status’: ‘FAILED\_PRECONDITION’}. I tried to check the state, and it’s FileState.PROCESSING: ‘PROCESSING’. after waiting 30 minutes, it’s still not working. What’s going on? Everything was fine last night, but today it’s broken. The image upload is working fine, but the video upload is not.

---

<div class="post-metadata">

**Author:** ![user1958](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/user1958/32/32000_2.png) [@user1958](https://discuss.ai.google.dev/u/user1958)\
**Post date:** [May 25, 2025, 12:34pm UTC](https://discuss.ai.google.dev/t/file-api-always-processing/85107/2 "2025-05-25T12:34:11Z")

</div>

sorry, just slow, not stuck. i used wrong way to check. `myfile.state` don’t use this way.

```python
for f in client.files.list():
    print(' ', f.state)

```

this is right

---

<div class="post-metadata">

**Author:** ![system](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/system/32/1_2.png) [@system](https://discuss.ai.google.dev/u/system)\
**Post date:** [November 5, 2026, 6:22pm UTC](https://discuss.ai.google.dev/t/file-api-always-processing/85107/4 "2026-11-05T18:22:27Z")

</div>

Closed on November 5, 2026, 6:22pm UTC

This thread was automatically closed 60 days after the last reply. If you are running into an issue, please create a new post.
