gemini-cli
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)]
What happened?
Consistently facing this error when sending my prompt:
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
I'm having the same problem too
yeah its very weird that they don't have integration tests which catch these errors. and there's no response on this issue either.
Cross-posting my analysis from #5592 to centralize the discussion.