inyfee
V2EX  ›  Google

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

  •  
  •   inyfee · Jul 18, 2025 · 3577 views
    This topic created in 475 days ago, the information mentioned may be changed or developed.

    从昨晚一直强度用 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 replies  •  2025-07-18 22:35:44 +08:00
    KingFong
    KingFong
    Jul 18, 2025
    1
    前几天就这样了,我昨天还尝试更新了一下 gemini 居然还没更新。
    dotfun
    dotfun
    Jul 18, 2025
    2
    这个更换用 api auth 好像可以解决
    highkay
    highkay
    Jul 18, 2025
    3
    这个是配额用完了,触发了一个 telementry 的 bug ,github 上有 issue ,修好了还没合并,直接用 npx 安装 github 可以解决。这里正确的逻辑是切换到 2.5-flash 。
    MaybeRichard
    MaybeRichard
    Jul 18, 2025
    4
    @highkay #3 怎么切换过去啊
    inyfee
    inyfee
    OP
    Jul 18, 2025
    5
    @MaybeRichard #4 gemini -m "gemini-2.5-flash"
    inyfee
    inyfee
    OP
    Jul 18, 2025
    6
    @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] . 但是简单的问答又正常.这个是什么错误知道么?
    inyfee
    inyfee
    OP
    Jul 18, 2025
    7
    @yeelone #6 看来是代理的问题.
    highkay
    highkay
    Jul 18, 2025
    8
    官方已经修好了,直接更新 gemini-cli 就好了。
    inyfee
    inyfee
    OP
    Jul 18, 2025
    9
    @highkay #8 更新了一下看起来似乎好了.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4931 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 08:51 · PVG 16:51 · LAX 00:51 · JFK 03:51
    ♥ Do have faith in what you're doing.