Troubleshoot Gemini Enterprise Agent Platform

This page is the starting point for troubleshooting Gemini Enterprise Agent Platform. Use it to diagnose an error, look up a specific error, find the guide for your task, or get support.

Diagnose an error

Before you look for a specific fix, collect the following information:

Read the error

Note the status code, such as 400 or 429, and the exact message text. You can look up both in the error catalog.

You can also identify the specific failure from a machine-readable reason, documentation link, or prefiltered log view if those are present in the error message.

Find the logs

To search and filter agent error logs, use the Logs Explorer, set Resource type to Vertex AI Reasoning Engine, and select the corresponding Resource container value (your project number) and Reasoning engine ID value.

Check quotas and service health

Errors that appear intermittently, or that started without a change on your side, are often caused by quota or by an ongoing incident:

Error catalog

Find the error you received in the following table. Errors with a status code are listed first, in numerical order, followed by the rest in alphabetical order. If your error isn't listed, use the troubleshooting guides for the task you were trying to complete.

Status code or message Resolution
400, FAILED_PRECONDITION, REASONING_ENGINE_A2A_NOT_CONFIGURED A2A methods not defined
400, FAILED_PRECONDITION, REASONING_ENGINE_AGENT_TIMEOUT Agent didn't finish responding in time
400, FAILED_PRECONDITION, REASONING_ENGINE_AGENT_UNAVAILABLE Agent failed to respond
400, FAILED_PRECONDITION, REASONING_ENGINE_NO_RUNNING_INSTANCES Agent has no running instances
400, FAILED_PRECONDITION, REASONING_ENGINE_PSC_INTERFACE_SERVICE_AGENT_NOT_FOUND Network attachment project missing Agent Platform Service Agent
400, FAILED_PRECONDITION, REASONING_ENGINE_REQUEST_TOO_LARGE Request payload is too large
400, INVALID_ARGUMENT, REASONING_ENGINE_BUILD_FAILED Container image build failed
400, INVALID_ARGUMENT, REASONING_ENGINE_CONTAINER_FAILED_TO_START Container failed to start
400, INVALID_ARGUMENT, REASONING_ENGINE_SECRET_ACCESS_DENIED, referenced by spec.deployment_spec.secret_env Secret Manager access errors
InvalidArgument: 400 Provided filter is not valid Error when filtering the list of agents
401 Context-Aware Access requirements are not met, 401 Request had invalid authentication credentials 401 authorization errors
403 Forbidden on an outbound request 403 Forbidden errors
403, PERMISSION_DENIED, REASONING_ENGINE_NOT_ACTIVE Agent isn't active
404, NOT_FOUND, REASONING_ENGINE_NOT_FOUND Agent not found
NotFound: 404 Can not copy from "gs://..." Cloud Storage bucket subdirectory isn't created
409, ABORTED, REASONING_ENGINE_AGENT_GATEWAY_CONCURRENT_PROVISION_ABORTED Agent Gateway binding aborted
413, Request Entity Too Large, Request payload exceeds the 32 MiB maximum Request payload is too large
429, RESOURCE_EXHAUSTED API rate limit or quota exceeded
429, RESOURCE_EXHAUSTED, at capacity Region temporarily at capacity
429, RESOURCE_EXHAUSTED, max_instances Maximum instances exceed regional limit
429, RESOURCE_EXHAUSTED, REASONING_ENGINE_AGENT_GATEWAY_LOOKUP_THROTTLED Agent Gateway lookup throttled
500 internal server error from a prebuilt template Prebuilt template errors
500, INTERNAL, REASONING_ENGINE_INTERNAL_TIMEOUT Internal timeout while calling the agent
500, INTERNAL, REASONING_ENGINE_PROVISIONING_FAILED Environment provisioning failed
503, UNAVAILABLE, REASONING_ENGINE_AGENT_GATEWAY_PROVISION_UNAVAILABLE Agent Gateway binding temporarily unavailable
504, DEADLINE_EXCEEDED, REASONING_ENGINE_AGENT_GATEWAY_PROVISION_TIMEOUT Agent Gateway binding timed out
504, DEADLINE_EXCEEDED, REASONING_ENGINE_BUILD_TIMEOUT Container image build timed out
504, DEADLINE_EXCEEDED, REASONING_ENGINE_CONTAINER_START_TIMEOUT Container didn't start in time
Certificate verification failures reaching a self-signed or private CA destination Self-signed or private CA destinations fail to connect
cloudpickle or pydantic version conflicts when serializing your agent Serialization errors
Code execution times out, file I/O failures in a sandbox Code execution issues
Empty list from .operation_schemas() Operation schemas is empty
failed to start and cannot serve traffic or Request is prohibited by organization's policy, inside a VPC Service Controls perimeter VPC-SC violation errors
failed to start and cannot serve traffic, on your first custom container (BYOC) deployment in a region BYOC first-time creation error
google.api_core.exceptions.Unknown: None, Failed to convert project number to project ID, during startup Errors during Agent Runtime startup
iam.serviceAccounts.actAs denied, metadata server unavailable Custom service account errors
ImportError: cannot import name 'reasoning_engines', ImportError: cannot import name 'agent_engines' Outdated version of the Agent Platform SDK for Python
PermissionDenied when you query an agent PermissionDenied error when querying your agent
Reasoning Engine Execution failed Reasoning Engine Execution failed
RuntimeError: Failed to generate memory, or no memories returned after a session No memories were generated
Sandbox creation failures Sandbox creation issues
TLS handshake failures from a custom container (BYOC) agent Agent deployed with custom container (BYOC) fails to connect
ValueError: Cannot get the Candidate text Content generation errors

Troubleshooting guides

If you don't have a specific error message, or your error isn't in the error catalog, see the following table for the corresponding guide for your task:

Task Guide
Installing the Agent Platform SDK and setting up your environment Agent Runtime environment setup
Creating an agent Create an agent
Deploying an agent to Agent Runtime Agent deployment
Using a deployed agent Use an agent
Calling an external service from an agent Agent Gateway connectivity
Listing, updating, or deleting a deployed agent Manage deployed agents
Running code in a sandbox Code Execution
Generating or retrieving memories Agent Platform Memory Bank
Serving a model or hitting a model quota Troubleshooting machine learning services

Get support

If the guides on this page don't resolve your issue, see Getting help for agents for support packages, community forums, and bug reporting. For billing questions, see Billing questions.

If you file a bug, provide the following information:

  • Status code
  • Error message
  • (Optional) Feedback if the error message is wrong, misleading, or not actionable.