[GH-ISSUE #5] Gemini CLI 授权生成JSON失败 #6

Open
opened 2026-02-27 16:46:44 +03:00 by kerem · 18 comments
Owner

Originally created by @DSLZL on GitHub (Oct 10, 2025).
Original GitHub issue: https://github.com/router-for-me/EasyCLI/issues/5

使用 Gemini CLI 授权时,授权成功:

Image

但是等一会在 EasyCLI 的授权界面里能看到:

Image
Originally created by @DSLZL on GitHub (Oct 10, 2025). Original GitHub issue: https://github.com/router-for-me/EasyCLI/issues/5 使用 Gemini CLI 授权时,授权成功: <img width="664" height="214" alt="Image" src="https://github.com/user-attachments/assets/dc5990a3-ea70-46ca-a2db-89328e8f65fe" /> 但是等一会在 EasyCLI 的授权界面里能看到: <img width="685" height="56" alt="Image" src="https://github.com/user-attachments/assets/a9e395e0-f3f1-41f0-9a19-5fb87f6e42b6" />
Author
Owner

@luispater commented on GitHub (Oct 10, 2025):

是不是没有输入project id?

<!-- gh-comment-id:3391043885 --> @luispater commented on GitHub (Oct 10, 2025): 是不是没有输入project id?
Author
Owner

@DSLZL commented on GitHub (Oct 10, 2025):

是不是没有输入project id?

是的,原来和这个有关啊?
那能不能加个自动创建project?

<!-- gh-comment-id:3391177006 --> @DSLZL commented on GitHub (Oct 10, 2025): > 是不是没有输入project id? 是的,原来和这个有关啊? 那能不能加个自动创建project?
Author
Owner

@DSLZL commented on GitHub (Oct 11, 2025):

我这边有几个号也是有项目的,还是不行,不是说如果不填写会自动读取第一个项目么?

<!-- gh-comment-id:3393429801 --> @DSLZL commented on GitHub (Oct 11, 2025): 我这边有几个号也是有项目的,还是不行,不是说如果不填写会自动读取第一个项目么?
Author
Owner

@DSLZL commented on GitHub (Oct 21, 2025):

佬这个问题依旧存在,能看出问题嘛

Image
<!-- gh-comment-id:3426306734 --> @DSLZL commented on GitHub (Oct 21, 2025): 佬这个问题依旧存在,能看出问题嘛 <img width="2560" height="1600" alt="Image" src="https://github.com/user-attachments/assets/e64d0b77-bf1d-43cd-a514-69cbdc6e10cd" />
Author
Owner

@luispater commented on GitHub (Oct 21, 2025):

确定输入了project id,而且project id输入正确?

<!-- gh-comment-id:3426519635 --> @luispater commented on GitHub (Oct 21, 2025): 确定输入了project id,而且project id输入正确?
Author
Owner

@DSLZL commented on GitHub (Oct 21, 2025):

是的,我不止自己测试,也问了好几个人,都是网页显示正常,但是GUI里就是这样
已经试过手动输入project id了,也确认project id输入正确,无论是复制粘贴还是手动输入都一样,也确认过大小写和有没有空格以及隐藏字符,都没有问题🥲

<!-- gh-comment-id:3426706546 --> @DSLZL commented on GitHub (Oct 21, 2025): 是的,我不止自己测试,也问了好几个人,都是网页显示正常,但是GUI里就是这样 已经试过手动输入project id了,也确认project id输入正确,无论是复制粘贴还是手动输入都一样,也确认过大小写和有没有空格以及隐藏字符,都没有问题🥲
Author
Owner

@luispater commented on GitHub (Oct 21, 2025):

是的,我不止自己测试,也问了好几个人,都是网页显示正常,但是GUI里就是这样 已经试过手动输入project id了,也确认project id输入正确,无论是复制粘贴还是手动输入都一样,也确认过大小写和有没有空格以及隐藏字符,都没有问题🥲

网页显示正常是啥意思?webui里可以正常工作,但是GUI里就不能?

<!-- gh-comment-id:3426722301 --> @luispater commented on GitHub (Oct 21, 2025): > 是的,我不止自己测试,也问了好几个人,都是网页显示正常,但是GUI里就是这样 已经试过手动输入project id了,也确认project id输入正确,无论是复制粘贴还是手动输入都一样,也确认过大小写和有没有空格以及隐藏字符,都没有问题🥲 网页显示正常是啥意思?webui里可以正常工作,但是GUI里就不能?
Author
Owner

@DSLZL commented on GitHub (Oct 21, 2025):

没有,是回调网页,显示successful什么的,然后回去一看就冒上面图的报错了

<!-- gh-comment-id:3426738171 --> @DSLZL commented on GitHub (Oct 21, 2025): 没有,是回调网页,显示successful什么的,然后回去一看就冒上面图的报错了
Author
Owner

@luispater commented on GitHub (Oct 21, 2025):

配置文件中的代理设置了吗?或者开启全局的tun?

<!-- gh-comment-id:3426783654 --> @luispater commented on GitHub (Oct 21, 2025): 配置文件中的代理设置了吗?或者开启全局的tun?
Author
Owner

@DSLZL commented on GitHub (Oct 21, 2025):

试过了,无论是单独开代理还是开全局TUN也一样,我还是觉得很奇怪🧐

<!-- gh-comment-id:3426908391 --> @DSLZL commented on GitHub (Oct 21, 2025): 试过了,无论是单独开代理还是开全局TUN也一样,我还是觉得很奇怪🧐
Author
Owner

@luispater commented on GitHub (Oct 21, 2025):

那你换命令行试试

<!-- gh-comment-id:3426922514 --> @luispater commented on GitHub (Oct 21, 2025): 那你换命令行试试
Author
Owner

@DSLZL commented on GitHub (Oct 21, 2025):

指的是直接用CLIProxyAPI么?

<!-- gh-comment-id:3426958362 --> @DSLZL commented on GitHub (Oct 21, 2025): 指的是直接用CLIProxyAPI么?
Author
Owner

@luispater commented on GitHub (Oct 21, 2025):

对,直接命令行登录看看

<!-- gh-comment-id:3426971401 --> @luispater commented on GitHub (Oct 21, 2025): 对,直接命令行登录看看
Author
Owner

@DSLZL commented on GitHub (Oct 21, 2025):

啥也没改,变这个,不知道那一步出问题了😥

Image

为localhost:8085

<!-- gh-comment-id:3427142844 --> @DSLZL commented on GitHub (Oct 21, 2025): 啥也没改,变这个,不知道那一步出问题了😥: <img width="531" height="735" alt="Image" src="https://github.com/user-attachments/assets/bd360678-b911-48e9-adb5-271a4c03a417" /> 为localhost:8085
Author
Owner

@luispater commented on GitHub (Oct 21, 2025):

这是直接命令行下使用的样子吗?看上去是端口被占用了,重启电脑重新再试试

<!-- gh-comment-id:3428835966 --> @luispater commented on GitHub (Oct 21, 2025): 这是直接命令行下使用的样子吗?看上去是端口被占用了,重启电脑重新再试试
Author
Owner

@DSLZL commented on GitHub (Oct 23, 2025):

清理了一下端口就没什么问题了,可以正常生成json
现在主要是不知道为什么EasyCLI不行,如果可以像命令行那样可以直白的看到日志就好了

<!-- gh-comment-id:3435360621 --> @DSLZL commented on GitHub (Oct 23, 2025): 清理了一下端口就没什么问题了,可以正常生成json 现在主要是不知道为什么EasyCLI不行,如果可以像命令行那样可以直白的看到日志就好了
Author
Owner

@beilo commented on GitHub (Oct 24, 2025):

+1 我也碰到这个问题

<!-- gh-comment-id:3441142964 --> @beilo commented on GitHub (Oct 24, 2025): +1 我也碰到这个问题
Author
Owner

@Ravens2121 commented on GitHub (Nov 29, 2025):

Image,如图所示,关于EasyCli远程连接vps时,创建新的gemini cli凭证文件出错,无法回调(tun模式开关都无用),本地8085端口正常监听。

<!-- gh-comment-id:3590776561 --> @Ravens2121 commented on GitHub (Nov 29, 2025): <img width="1886" height="757" alt="Image" src="https://github.com/user-attachments/assets/74408d38-c1f1-4b82-9638-e68dfeb23ed0" />,如图所示,关于EasyCli远程连接vps时,创建新的gemini cli凭证文件出错,无法回调(tun模式开关都无用),本地8085端口正常监听。
Sign in to join this conversation.
No labels
bug
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/EasyCLI#6
No description provided.