You can prompt the model to try again or start a new conversation if the error persists.See our troubleshooting_guide for more help

Trajectory ID:thtgre-4488-4455
Error: agent executor error: request failed: Post “https://cloudcode-pa.googleapis.com/v1internal:streamGenerateContent?alt=sse”: oauth2: “unauthorized_client” “Unauthorized”: request failed: Post “https://cloudcode-pa.googleapis.com/v1internal:streamGenerateContent?alt=sse”: oauth2: “unauthorized_client” “Unauthorized”
(1) attached stack trace
– stack trace:
| google3/third_party/gemini_coder/framework/executor/agentexecutor/agentexecutor.(*AgentExecutor).Run
| third_party/gemini_coder/framework/executor/agentexecutor/agentexecutor.go:312
| […repeated from below…]
Wraps: (2) agent executor error
Wraps: (3) tags: map[stream_receive_count:0 streaming_duration:0s]
Wraps: (4) attached stack trace
– stack trace:
| google3/third_party/gemini_coder/framework/generator/generator.(*streamResponseHandler).processStream
| third_party/gemini_coder/framework/generator/stream_handler.go:329
| google3/third_party/gemini_coder/framework/generator/generator.(*PlannerGenerator).attemptGenerate
| third_party/gemini_coder/framework/generator/planner_generator.go:451
| google3/third_party/gemini_coder/framework/generator/generator.(*PlannerGenerator).generateWithAPIRetry
| third_party/gemini_coder/framework/generator/planner_generator.go:286
| google3/third_party/gemini_coder/framework/generator/generator.(*PlannerGenerator).generateWithModelOutputRetry
| third_party/gemini_coder/framework/generator/planner_generator.go:148
| google3/third_party/gemini_coder/framework/generator/generator.(*PlannerGenerator).Generate
| third_party/gemini_coder/framework/generator/planner_generator.go:91
| google3/third_party/gemini_coder/framework/executor/executor.(*Executor).executeLoop
| third_party/gemini_coder/framework/executor/executor.go:358
| google3/third_party/gemini_coder/framework/executor/executor.(*Executor).Execute
| third_party/gemini_coder/framework/executor/executor.go:278
| google3/third_party/gemini_coder/framework/executor/agentexecutor/agentexecutor.(*AgentExecutor).Run
| third_party/gemini_coder/framework/executor/agentexecutor/agentexecutor.go:278
| google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper.func1
| third_party/jetski/cortex/cascade_manager.go:2027
| google3/third_party/jetski/cortex/utils/background.(*Pool).Go.func2
| third_party/jetski/cortex/utils/background.go:121
| google3/go/context/detach.Go.func1
| go/context/detach.go:247
| runtime.goexit
| third_party/go/gc/src/runtime/asm_amd64.s:1774
Wraps: (5) request failed: Post “https://cloudcode-pa.googleapis.com/v1internal:streamGenerateContent?alt=sse”: oauth2: “unauthorized_client” “Unauthorized”
Wraps: (6) request failed
Wraps: (7) Post “https://cloudcode-pa.googleapis.com/v1internal:streamGenerateContent?alt=sse”
Wraps: (8) oauth2: “unauthorized_client” “Unauthorized”
Error types: (1) *withstack.withStack (2) *errutil.withPrefix (3) *go_utils.withTags (4) *withstack.withStack (5) *errutil.withPrefix (6) *fmt.wrapError (7) *url.Error (8) *oauth2.RetrieveError

Hi @Freya_Smith,

This is an authentication error. To resolve this issue, please log out and then log in again.

1 Like