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

Consistent Error: [API Error: * CountTokensRequest.contents[2].parts[0].data: required oneof field 'data' must have one initialized field (Status: INVALID_ARGUMENT)]

Open yashasvigirdhar opened this issue 1 year ago • 3 comments

What happened?

Consistently facing this error when sending my prompt:

Image

What did you expect to happen?

No errors.

Client information

  • CLI Version: 0.1.16
  • Git Commit: 820169ba (local modifications)
  • Operating System: darwin v24.3.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-2.5-pro
  • Memory Usage: 510.5 MB

Login information

No response

Anything else we need to know?

No response

yashasvigirdhar avatar Aug 05 '25 11:08 yashasvigirdhar

I'm having the same problem too

takuma-competition avatar Aug 14 '25 07:08 takuma-competition

yeah its very weird that they don't have integration tests which catch these errors. and there's no response on this issue either.

yashasvigirdhar avatar Aug 14 '25 21:08 yashasvigirdhar

Cross-posting my analysis from #5592 to centralize the discussion.

can-non avatar Aug 18 '25 16:08 can-non