[GH-ISSUE #345] internal error报错 #242

Open
opened 2026-02-27 07:18:37 +03:00 by kerem · 4 comments
Owner

Originally created by @fredericky123 on GitHub (Feb 26, 2026).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/345

如图报错,应该如何解决哎 用的Gemini CLI OAuth

Image
Originally created by @fredericky123 on GitHub (Feb 26, 2026). Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/345 如图报错,应该如何解决哎 用的Gemini CLI OAuth <img width="682" height="190" alt="Image" src="https://github.com/user-attachments/assets/95311057-1bdf-4639-9364-56a51416f8ad" />
Author
Owner

@fredericky123 commented on GitHub (Feb 26, 2026):

[Antigravity API] Error calling (Status: 500, Code: 500): Internal error encountere

<!-- gh-comment-id:3967909288 --> @fredericky123 commented on GitHub (Feb 26, 2026): [Antigravity API] Error calling (Status: 500, Code: 500): Internal error encountere
Author
Owner

@fredericky123 commented on GitHub (Feb 27, 2026):

[2026-02-27 02:08:18.002] [Req:48af47b0] [ERROR] [Gemini API] Error calling (Status: 500, Code: 500): Internal error encountered.
[2026-02-27 02:08:18.002] [Req::48af47b0] [ERROR] [Server] Error during unary processing: Error: Internal error encountered. 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.callApi (file:///app/src/providers/gemini/gemini-core.js:482:25) at async GeminiApiService.generateContent (file:///app/src/providers/gemini/gemini-core.js:667:26) at async handleUnaryRequest (file:///app/src/utils/common.js:661:32) at async handleUnaryRequest (file:///app/src/utils/common.js:759:28) at async handleContentGenerationRequest (file:///app/src/utils/common.js:951:9) at async handleAPIRequests (file:///app/src/services/api-manager.js:39:13) at async Server.requestHandler (file:///app/src/handlers/request-handler.js:262:32)
[2026-02-27 02:08:18.003] [Req::48af47b0] [INFO] [Provider Pool] Marking gemini-cli-oauth as unhealthy due to unary error (status: 500)
[2026-02-27 02:08:19.004] [INFO] [ProviderPoolManager] configs/provider_pools.json updated successfully for types: gemini-cli-oauth
[2026-02-27 02:08:25.512] [Req:127.0.0.1:4fd096d8] [INFO] [Server] Received request: GET http://localhost:3000/health
[2026-02-27 02:08:55.626] [Req:127.0.0.1:11b11e8b] [INFO] [Server] Received request: GET http://localhost:3000/health

<!-- gh-comment-id:3970307460 --> @fredericky123 commented on GitHub (Feb 27, 2026): [2026-02-27 02:08:18.002] [Req:48af47b0] [ERROR] [Gemini API] Error calling (Status: 500, Code: 500): Internal error encountered. [2026-02-27 02:08:18.002] [Req::48af47b0] [ERROR] [Server] Error during unary processing: Error: Internal error encountered. 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.callApi (file:///app/src/providers/gemini/gemini-core.js:482:25) at async GeminiApiService.generateContent (file:///app/src/providers/gemini/gemini-core.js:667:26) at async handleUnaryRequest (file:///app/src/utils/common.js:661:32) at async handleUnaryRequest (file:///app/src/utils/common.js:759:28) at async handleContentGenerationRequest (file:///app/src/utils/common.js:951:9) at async handleAPIRequests (file:///app/src/services/api-manager.js:39:13) at async Server.requestHandler (file:///app/src/handlers/request-handler.js:262:32) [2026-02-27 02:08:18.003] [Req::48af47b0] [INFO] [Provider Pool] Marking gemini-cli-oauth as unhealthy due to unary error (status: 500) [2026-02-27 02:08:19.004] [INFO] [ProviderPoolManager] configs/provider_pools.json updated successfully for types: gemini-cli-oauth [2026-02-27 02:08:25.512] [Req:127.0.0.1:4fd096d8] [INFO] [Server] Received request: GET http://localhost:3000/health [2026-02-27 02:08:55.626] [Req:127.0.0.1:11b11e8b] [INFO] [Server] Received request: GET http://localhost:3000/health
Author
Owner

@justlovemaki commented on GitHub (Feb 27, 2026):

Gemini CLI 还不支持3.1吧

<!-- gh-comment-id:3970467543 --> @justlovemaki commented on GitHub (Feb 27, 2026): Gemini CLI 还不支持3.1吧
Author
Owner

@fredericky123 commented on GitHub (Feb 27, 2026):

Image 我以为这个图里的模型都支持了

用gemini 3 也是报错

[2026-02-27 03:24:36.964] [Req: [INFO] [Unary Retry] Credential marked unhealthy. Waiting 3496ms before retry 1/1 with different credential...
[2026-02-27 03:24:37.968] [Req:] [INFO] [ProviderPoolManager] configs/provider_pools.json updated successfully for types: gemini-cli-oauth
[2026-02-27 03:24:40.461] [Req:2] [INFO] [ProviderPoolManager] [Concurrency Control] Atomic selection: 9e8dc12a-831f-440e-a292-ed44a647666e (Seq: 52)
[2026-02-27 03:24:40.461] [Req:] [INFO] [Adapter] getServiceAdapter, provider: gemini-cli-oauth, uuid: 9e8dc12a-831f-440e-a292-ed44a647666e
[2026-02-27 03:24:40.461] [Req:9] [INFO] [Unary Retry] Switched to new credential: 9e8dc12a-831f-440e-a292-ed44a647666e (provider: gemini-cli-oauth)
[2026-02-27 03:24:40.461] [Req:] [INFO] [Auth Token] Time until expiry: Token has expired
[2026-02-27 03:24:40.462] [Req:] [INFO] [Gemini] Checking expiry date | Expiry date: 1772160476817, Current time: 1772162680462, 20 minutes from now: 1772163880462, Is near expiry: true
[2026-02-27 03:24:41.082] [Req:9] [ERROR] [Gemini API] Error calling (Status: 500, Code: 500): Internal error encountered.
[2026-02-27 03:24:41.082] [Req:9] [INFO] [Gemini API] Received 500 server error. Retrying in 1000ms... (attempt 1/3)
[2026-02-27 03:24:41.463] [Req:] [INFO] [ProviderPoolManager] configs/provider_pools.json updated successfully for types: gemini-cli-oauth
[2026-02-27 03:24:42.596] [Req:] [ERROR] [Gemini API] Error calling (Status: 500, Code: 500): Internal error encountered.
[2026-02-27 03:24:42.597] [Req:] [INFO] [Gemini API] Received 500 server error. Retrying in 2000ms... (attempt 2/3)
[2026-02-27 03:24:42.994] [Req:127.0.0.1:c38eeabd] [INFO] [Server] Received request: GET http://localhost:3000/health
[2026-02-27 03:24:45.107] [Req:127.0.0.1:c38eeabd] [ERROR] [Gemini API] Error calling (Status: 500, Code: 500): Internal error encountered.
[2026-02-27 03:24:45.107] [Req:127.0.0.1:c38eeabd] [INFO] [Gemini API] Received 500 server error. Retrying in 4000ms... (attempt 3/3)
[2026-02-27 03:24:49.254] [Req:e] [ERROR] [Gemini API] Error calling (Status: 500, Code: 500): Internal error encountered.
[2026-02-27 03:24:49.255] [Req:] [ERROR] [Server] Error during unary processing: Error: Internal error encountered. 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.callApi (file:///app/src/providers/gemini/gemini-core.js:482:25) at async GeminiApiService.generateContent (file:///app/src/providers/gemini/gemini-core.js:667:26) at async handleUnaryRequest (file:///app/src/utils/common.js:661:32) at async handleUnaryRequest (file:///app/src/utils/common.js:759:28) at async handleContentGenerationRequest (file:///app/src/utils/common.js:951:9) at async handleAPIRequests (file:///app/src/services/api-manager.js:39:13) at async Server.requestHandler (file:///app/src/handlers/request-handler.js:262:32)
[2026-02-27 03:24:49.255] [Req:] [INFO] [Provider Pool] Marking gemini-cli-oauth as unhealthy due to unary error (status: 500)
[2026-02-27 03:24:50.256] [INFO] [ProviderPoolManager] configs/provider_pools.json updated successfully for types: gemini-cli-oauth

<!-- gh-comment-id:3970514396 --> @fredericky123 commented on GitHub (Feb 27, 2026): <img width="1021" height="277" alt="Image" src="https://github.com/user-attachments/assets/77ab5346-d8cc-4b27-89f1-7e005a879067" /> 我以为这个图里的模型都支持了 用gemini 3 也是报错 [2026-02-27 03:24:36.964] [Req: [INFO] [Unary Retry] Credential marked unhealthy. Waiting 3496ms before retry 1/1 with different credential... [2026-02-27 03:24:37.968] [Req:] [INFO] [ProviderPoolManager] configs/provider_pools.json updated successfully for types: gemini-cli-oauth [2026-02-27 03:24:40.461] [Req:2] [INFO] [ProviderPoolManager] [Concurrency Control] Atomic selection: 9e8dc12a-831f-440e-a292-ed44a647666e (Seq: 52) [2026-02-27 03:24:40.461] [Req:] [INFO] [Adapter] getServiceAdapter, provider: gemini-cli-oauth, uuid: 9e8dc12a-831f-440e-a292-ed44a647666e [2026-02-27 03:24:40.461] [Req:9] [INFO] [Unary Retry] Switched to new credential: 9e8dc12a-831f-440e-a292-ed44a647666e (provider: gemini-cli-oauth) [2026-02-27 03:24:40.461] [Req:] [INFO] [Auth Token] Time until expiry: Token has expired [2026-02-27 03:24:40.462] [Req:] [INFO] [Gemini] Checking expiry date | Expiry date: 1772160476817, Current time: 1772162680462, 20 minutes from now: 1772163880462, Is near expiry: true [2026-02-27 03:24:41.082] [Req:9] [ERROR] [Gemini API] Error calling (Status: 500, Code: 500): Internal error encountered. [2026-02-27 03:24:41.082] [Req:9] [INFO] [Gemini API] Received 500 server error. Retrying in 1000ms... (attempt 1/3) [2026-02-27 03:24:41.463] [Req:] [INFO] [ProviderPoolManager] configs/provider_pools.json updated successfully for types: gemini-cli-oauth [2026-02-27 03:24:42.596] [Req:] [ERROR] [Gemini API] Error calling (Status: 500, Code: 500): Internal error encountered. [2026-02-27 03:24:42.597] [Req:] [INFO] [Gemini API] Received 500 server error. Retrying in 2000ms... (attempt 2/3) [2026-02-27 03:24:42.994] [Req:127.0.0.1:c38eeabd] [INFO] [Server] Received request: GET http://localhost:3000/health [2026-02-27 03:24:45.107] [Req:127.0.0.1:c38eeabd] [ERROR] [Gemini API] Error calling (Status: 500, Code: 500): Internal error encountered. [2026-02-27 03:24:45.107] [Req:127.0.0.1:c38eeabd] [INFO] [Gemini API] Received 500 server error. Retrying in 4000ms... (attempt 3/3) [2026-02-27 03:24:49.254] [Req:e] [ERROR] [Gemini API] Error calling (Status: 500, Code: 500): Internal error encountered. [2026-02-27 03:24:49.255] [Req:] [ERROR] [Server] Error during unary processing: Error: Internal error encountered. 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.callApi (file:///app/src/providers/gemini/gemini-core.js:482:25) at async GeminiApiService.generateContent (file:///app/src/providers/gemini/gemini-core.js:667:26) at async handleUnaryRequest (file:///app/src/utils/common.js:661:32) at async handleUnaryRequest (file:///app/src/utils/common.js:759:28) at async handleContentGenerationRequest (file:///app/src/utils/common.js:951:9) at async handleAPIRequests (file:///app/src/services/api-manager.js:39:13) at async Server.requestHandler (file:///app/src/handlers/request-handler.js:262:32) [2026-02-27 03:24:49.255] [Req:] [INFO] [Provider Pool] Marking gemini-cli-oauth as unhealthy due to unary error (status: 500) [2026-02-27 03:24:50.256] [INFO] [ProviderPoolManager] configs/provider_pools.json updated successfully for types: gemini-cli-oauth
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#242
No description provided.