-
Notifications
You must be signed in to change notification settings - Fork 322
Gemini CLI Failed: API proxy enabled but no API keys found in environment #23655
Copy link
Copy link
Open
Labels
Description
Log evidence
[WARN] API proxy enabled but no API keys found in environment
Failed to save project registry: Error: ENOENT: no such file or directory, rename '.../projects.json.tmp' -> '.../projects.json'
Please set an Auth method in your settings.json or specify one of the following environment variables before running: GEMINI_API_KEY, GOOGLE_GENAI_USE_VERTEXAI, GOOGLE_GENAI_USE_GCA
[WARN] Command completed with exit code: 41
Process exiting with code: 41
Expected behaviour
- The Gemini CLI invocation starts and either completes or fails with a clear, documented authentication or filesystem error (distinct, stable exit codes).
- The CLI does not abort with an ENOENT during startup/initialization when invoked by the workflow.
Actual behaviour
- The Gemini CLI fails while attempting to write its projects registry (rename returns ENOENT), then reports no authentication configured, and the process exits with code
41. - The run log reports the API proxy was enabled but no API keys were present in the environment.
Steps to reproduce (example failing workflow reference)
- Observe the failing run for the
hn-daily-digestworkflow on themainbranch for repositorydoughgle/agentic-workflows-workshop. The run invokes the Gemini CLI and exhibits the failure shown above.
Metadata / identifiers
- Run ID:
23786740249 - Workflow:
hn-daily-digest - Status: completed (failure)
- Duration: 1.9m
- Event:
workflow_dispatch - Branch:
main - Run URL: https://github.com/doughgle/agentic-workflows-workshop/actions/runs/23786740249
- Engine ID:
gemini(Google Gemini CLI) - Model:
auto - CLI Version:
v0.65.0
(Only the failing run and repository references are included; local workstation paths and secrets are omitted.)
Reactions are currently unavailable
Metadata
Metadata
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.