[GH-ISSUE #159] gemini-cli-oauth配置项目id后,接口调用返回403 #126

Closed
opened 2026-02-27 07:18:07 +03:00 by kerem · 1 comment
Owner

Originally created by @MichaelPaul0416 on GitHub (Jan 4, 2026).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/159

我在gemini-cli-oauth配置了project_id,并且在google cloud上也新增了对应的项目,添加了api库和iam权限,但是请求的时候还是出现了403的报错,这个是还缺了什么权限吗?
报错信息如下:
error: {code: 403, message: 'Permission denied on resource project pilates-gemini.', errors: Array(1), status: 'PERMISSION_DENIED', details: Array(3)}

Image Image Image
Originally created by @MichaelPaul0416 on GitHub (Jan 4, 2026). Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/159 我在gemini-cli-oauth配置了project_id,并且在google cloud上也新增了对应的项目,添加了api库和iam权限,但是请求的时候还是出现了403的报错,这个是还缺了什么权限吗? 报错信息如下: error: {code: 403, message: 'Permission denied on resource project pilates-gemini.', errors: Array(1), status: 'PERMISSION_DENIED', details: Array(3)} <img width="1036" height="176" alt="Image" src="https://github.com/user-attachments/assets/91c50c49-c529-4d8d-b650-0bb6acfae246" /> <img width="1166" height="656" alt="Image" src="https://github.com/user-attachments/assets/0463e0ed-a367-4c95-be89-a6cc6c23e984" /> <img width="685" height="153" alt="Image" src="https://github.com/user-attachments/assets/a08f21b6-abbf-4171-8815-c4b4ef05a0d1" />
kerem closed this issue 2026-02-27 07:18:07 +03:00
Author
Owner

@justlovemaki commented on GitHub (Jan 4, 2026):

先搞个pro的号吧

<!-- gh-comment-id:3708117705 --> @justlovemaki commented on GitHub (Jan 4, 2026): 先搞个pro的号吧
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#126
No description provided.