gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

[API Error: Converting circular structure to JSON

Open lcylcyll opened this issue 1 year ago • 13 comments

What happened?

✕ [API Error: Converting circular structure to JSON --> starting at object with constructor 'HttpsProxyAgent' | property 'sockets' -> object with constructor 'Object' | property 'cloudcode-pa.googleapis.com:443:::::::::::::::::::::' -> object with constructor 'Array' | ... | property '_httpMessage' -> object with constructor 'ClientRequest' --- property 'agent' closes the circle]

│ About Gemini CLI │ │ │ │ CLI Version 0.1.12 │ │ Git Commit b29c02dd (local modifications) │ │ Model gemini-2.5-pro │ │ Sandbox no sandbox │ │ OS win32 │ │ Auth Method OAuth

使用了代理,前一天还是正常的,让更新了一下就变成了这样了,昨天和今天的更新也是一样的

What did you expect to happen?

我应该怎么样来解决这一个问题修

Client information

读一下项目 │ ╰────────────────╯

✕ [API Error: Converting circular structure to JSON --> starting at object with constructor 'HttpsProxyAgent' | property 'sockets' -> object with constructor 'Object' | property 'cloudcode-pa.googleapis.com:443:::::::::::::::::::::' -> object with constructor 'Array' | ... | property '_httpMessage' -> object with constructor 'ClientRequest' --- property 'agent' closes the circle]

Using 1 GEMINI.md file

Login information

No response

Anything else we need to know?

No response

lcylcyll avatar Jul 14 '25 06:07 lcylcyll

me too ,how can I solve the problem...

A-Corner avatar Jul 14 '25 06:07 A-Corner

Image Same here, it was running fine and then an error occurred.

oiuv avatar Jul 14 '25 09:07 oiuv

Same here, how to solve this problem?

LiuShuaiQ avatar Jul 14 '25 09:07 LiuShuaiQ

me too

skuramatata avatar Jul 14 '25 09:07 skuramatata

我试了一下,如果用API的话,应该不会出现这种情况

MOON-DREAM-STARS avatar Jul 14 '25 09:07 MOON-DREAM-STARS

我试了一下,如果用API的话,应该不会出现这种情况

用API不得充钱嘛,没国外信用卡啊。

oiuv avatar Jul 14 '25 11:07 oiuv

me too, help me please

zhengguo07q avatar Jul 14 '25 11:07 zhengguo07q

gemini -m "gemini-2.5-flash" 这样勉强能用

zhucj1981 avatar Jul 14 '25 12:07 zhucj1981

代码中更新修复了,在新版本发布前可以用这个运行:npx https://github.com/google-gemini/gemini-cli

原因是gemini-2.5-pro没额度了,但切换gemini-2.5-flash模型失败,或者自己直接选flash模型运行gemini来解决。

oiuv avatar Jul 15 '25 05:07 oiuv

This should be fixed via https://github.com/google-gemini/gemini-cli/pull/4150 - this should be fixed in the latest nightly and/or the next point release

bdmorgan avatar Jul 15 '25 19:07 bdmorgan

When will the next version be updated?

yeelone avatar Jul 17 '25 23:07 yeelone

同问,下一个版本什么时候更新?

TommyFreya avatar Jul 18 '25 05:07 TommyFreya

Ditto, when will the next version be updated?

springboot4 avatar Jul 19 '25 12:07 springboot4