V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yeelone
V2EX  ›  Google

今天 gemini-cli 一直用不了, 一直报错

  •  
  •   yeelone · 14 天前 · 1526 次点击

    从昨晚一直强度用 gemini-cli 来优化我的一些功能, 表现还算不错. 现在这种新的模式,感觉有点爽. 今天早上兴冲冲就开机准备继续干.

    结果就报错了:

    ✕ [API Error: Converting circular structure to JSON
          --> starting at object with constructor 'TLSSocket'
          |     property '_httpMessage' -> object with constructor 'ClientRequest'
          --- property 'socket' closes the circle]
    

    搜了一下 github. 目前看起来只能等更新了.

    9 条回复    2025-07-18 22:35:44 +08:00
    yanjieee
        1
    yanjieee  
    PRO
       14 天前
    前几天就这样了,我昨天还尝试更新了一下 gemini 居然还没更新。
    peterswan
        2
    peterswan  
       14 天前
    这个更换用 api auth 好像可以解决
    highkay
        3
    highkay  
       14 天前
    这个是配额用完了,触发了一个 telementry 的 bug ,github 上有 issue ,修好了还没合并,直接用 npx 安装 github 可以解决。这里正确的逻辑是切换到 2.5-flash 。
    MaybeRichard
        4
    MaybeRichard  
       13 天前
    @highkay #3 怎么切换过去啊
    yeelone
        5
    yeelone  
    OP
       13 天前
    @MaybeRichard #4 gemini -m "gemini-2.5-flash"
    yeelone
        6
    yeelone  
    OP
       13 天前
    @highkay #3 我使用 flash 改代码,会提示另一个错误:✕ [API Error: request to https://cloudcode-pa.googleapis.com/v1internal:countTokens failed, reason: Client network socket
    disconnected before secure TLS connection was established] . 但是简单的问答又正常.这个是什么错误知道么?
    yeelone
        7
    yeelone  
    OP
       13 天前
    @yeelone #6 看来是代理的问题.
    highkay
        8
    highkay  
       13 天前
    官方已经修好了,直接更新 gemini-cli 就好了。
    yeelone
        9
    yeelone  
    OP
       13 天前
    @highkay #8 更新了一下看起来似乎好了.
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3910 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 05:28 · PVG 13:28 · LAX 22:28 · JFK 01:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.