[GH-ISSUE #115] gemini-3-pro-preview get 404 error #93

Closed
opened 2026-02-27 07:17:56 +03:00 by kerem · 7 comments
Owner

Originally created by @LoadingZhang on GitHub (Dec 18, 2025).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/115

12/18/2025, 7:12:52 AM
[Server] Received request: POST http://ai2api.xxx.top/v1beta/models/gemini-3-pro-preview:streamGenerateContent?alt=sse
[Config] Ignoring invalid MODEL_PROVIDER in path segment: v1beta
[ProviderPoolManager] No available and healthy providers for type: gemini-cli-oauth
[Adapter] getServiceAdapter, provider: gemini-cli-oauth, uuid: undefined
[API Service] No healthy provider found in pool for gemini-cli-oauth. Falling back to main config.
[Request Convert] Request format matches backend provider. No conversion needed.
[Content Generation] Model: gemini-3-pro-preview, Stream: true
[ProviderPoolManager] No available providers for type: gemini-cli-oauth that support model: gemini-3-pro-preview
[API Service] No healthy provider found in pool for gemini-cli-oauth supporting model: gemini-3-pro-preview. Falling back to main config.
[Adapter] getServiceAdapter, provider: gemini-cli-oauth, uuid: undefined
[Content Generation] Re-selected service adapter based on model: gemini-3-pro-preview
geminiApiService not initialized, attempting to re-initialize...
[Gemini] Initializing Gemini API Service...
[Gemini Auth] Authentication configured successfully from file.
[Gemini] Using provided Project ID: xxx
[Gemini] Using fixed models: [gemini-2.5-flash, gemini-2.5-flash-lite, gemini-2.5-pro, gemini-2.5-pro-preview-06-05, gemini-2.5-flash-preview-09-2025, gemini-3-pro-preview]
[Gemini] Initialization complete. Project ID: xxx
[Auth Token] Time until expiry: 00h 53m 43s
[API] Error during stream streamGenerateContent: 404 Request failed with status code 404

[Server] Error during stream processing: Error: Request failed with status code 404
    at Gaxios._request (/app/node_modules/gaxios/build/cjs/src/gaxios.js:154:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async OAuth2Client.requestAsync (/app/node_modules/google-auth-library/build/src/auth/oauth2client.js:463:20)
    at async GeminiApiService.streamApi (file:///app/src/gemini/gemini-core.js:463:25)
    at async GeminiApiService.generateContentStream (file:///app/src/gemini/gemini-core.js:551:30)
    at async GeminiApiServiceAdapter.generateContentStream (file:///app/src/adapter.js:79:9)
    at async handleStreamRequest (file:///app/src/common.js:197:26)
    at async handleContentGenerationRequest (file:///app/src/common.js:429:9)
    at async handleAPIRequests (file:///app/src/api-manager.js:48:13)
    at async Server.requestHandler (file:///app/src/request-handler.js:129:32)

使用gemini cli是能正常使用gemini 3 pro的

Originally created by @LoadingZhang on GitHub (Dec 18, 2025). Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/115 ``` 12/18/2025, 7:12:52 AM [Server] Received request: POST http://ai2api.xxx.top/v1beta/models/gemini-3-pro-preview:streamGenerateContent?alt=sse [Config] Ignoring invalid MODEL_PROVIDER in path segment: v1beta [ProviderPoolManager] No available and healthy providers for type: gemini-cli-oauth [Adapter] getServiceAdapter, provider: gemini-cli-oauth, uuid: undefined [API Service] No healthy provider found in pool for gemini-cli-oauth. Falling back to main config. [Request Convert] Request format matches backend provider. No conversion needed. [Content Generation] Model: gemini-3-pro-preview, Stream: true [ProviderPoolManager] No available providers for type: gemini-cli-oauth that support model: gemini-3-pro-preview [API Service] No healthy provider found in pool for gemini-cli-oauth supporting model: gemini-3-pro-preview. Falling back to main config. [Adapter] getServiceAdapter, provider: gemini-cli-oauth, uuid: undefined [Content Generation] Re-selected service adapter based on model: gemini-3-pro-preview geminiApiService not initialized, attempting to re-initialize... [Gemini] Initializing Gemini API Service... [Gemini Auth] Authentication configured successfully from file. [Gemini] Using provided Project ID: xxx [Gemini] Using fixed models: [gemini-2.5-flash, gemini-2.5-flash-lite, gemini-2.5-pro, gemini-2.5-pro-preview-06-05, gemini-2.5-flash-preview-09-2025, gemini-3-pro-preview] [Gemini] Initialization complete. Project ID: xxx [Auth Token] Time until expiry: 00h 53m 43s [API] Error during stream streamGenerateContent: 404 Request failed with status code 404 [Server] Error during stream processing: Error: Request failed with status code 404 at Gaxios._request (/app/node_modules/gaxios/build/cjs/src/gaxios.js:154:23) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async OAuth2Client.requestAsync (/app/node_modules/google-auth-library/build/src/auth/oauth2client.js:463:20) at async GeminiApiService.streamApi (file:///app/src/gemini/gemini-core.js:463:25) at async GeminiApiService.generateContentStream (file:///app/src/gemini/gemini-core.js:551:30) at async GeminiApiServiceAdapter.generateContentStream (file:///app/src/adapter.js:79:9) at async handleStreamRequest (file:///app/src/common.js:197:26) at async handleContentGenerationRequest (file:///app/src/common.js:429:9) at async handleAPIRequests (file:///app/src/api-manager.js:48:13) at async Server.requestHandler (file:///app/src/request-handler.js:129:32) ``` 使用gemini cli是能正常使用gemini 3 pro的
kerem closed this issue 2026-02-27 07:17:56 +03:00
Author
Owner

@justlovemaki commented on GitHub (Dec 18, 2025):

正常使用gemini 3 pro的,和项目里确定是同一个号么?
进你后台了,项目id填错了。

<!-- gh-comment-id:3668798971 --> @justlovemaki commented on GitHub (Dec 18, 2025): 正常使用gemini 3 pro的,和项目里确定是同一个号么? 进你后台了,项目id填错了。
Author
Owner

@lifeibo commented on GitHub (Dec 18, 2025):

遇到同样的问题,gemini 3 flash,也是404,其他模型都好用。

<!-- gh-comment-id:3669034804 --> @lifeibo commented on GitHub (Dec 18, 2025): 遇到同样的问题,gemini 3 flash,也是404,其他模型都好用。
Author
Owner

@justlovemaki commented on GitHub (Dec 18, 2025):

1.检查项目ID
2.检查是否有请求gemini-3模型的权限,申请入口现已关闭
3.Google One Pro会员可用,或在家庭组中

<!-- gh-comment-id:3669242085 --> @justlovemaki commented on GitHub (Dec 18, 2025): 1.检查项目ID 2.检查是否有请求gemini-3模型的权限,申请入口现已关闭 3.Google One Pro会员可用,或在家庭组中
Author
Owner

@LoadingZhang commented on GitHub (Dec 18, 2025):

  1. 是同一个ID
  2. 之前申请过,今天似乎都可以用了吧?gemini cli是可以用3-pro-preview的
<!-- gh-comment-id:3669967307 --> @LoadingZhang commented on GitHub (Dec 18, 2025): 1. 是同一个ID 2. 之前申请过,今天似乎都可以用了吧?gemini cli是可以用3-pro-preview的
Author
Owner

@justlovemaki commented on GitHub (Dec 19, 2025):

  1. 是同一个ID
  2. 之前申请过,今天似乎都可以用了吧?gemini cli是可以用3-pro-preview的

不填项目id,使用自动发现的id试试,能用的话,就是你之前的id填错了

<!-- gh-comment-id:3675558033 --> @justlovemaki commented on GitHub (Dec 19, 2025): > 1. 是同一个ID > 2. 之前申请过,今天似乎都可以用了吧?gemini cli是可以用3-pro-preview的 不填项目id,使用自动发现的id试试,能用的话,就是你之前的id填错了
Author
Owner

@justlovemaki commented on GitHub (Dec 19, 2025):

遇到同样的问题,gemini 3 flash,也是404,其他模型都好用。

没有使用权限

<!-- gh-comment-id:3675560343 --> @justlovemaki commented on GitHub (Dec 19, 2025): > 遇到同样的问题,gemini 3 flash,也是404,其他模型都好用。 没有使用权限
Author
Owner

@LoadingZhang commented on GitHub (Dec 19, 2025):

删了确实可以了,gemini cli指定的GOOGLE_CLOUD_PROJECT就是这个ID,是能用的

<!-- gh-comment-id:3675984783 --> @LoadingZhang commented on GitHub (Dec 19, 2025): 删了确实可以了,gemini cli指定的GOOGLE_CLOUD_PROJECT就是这个ID,是能用的
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#93
No description provided.