You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS type and version: Linux (Docker container with python:3.12-slim)
Python version: 3.12
pip version: 25.0.1
google-cloud-aiplatform version: 1.90.0
Steps to reproduce
Create a basic Agent Engine
Try to add environment variables using the env_vars parameter
Receive a 500 error with no additional details in the logs
Code example
fromgoogle.cloudimportaiplatformfromvertexai.agent_enginesimportAgent, AgentEngine, createfromvertexai.agent_enginesimportAgentLibrary# Basic initializationaiplatform.init(project='example-project-123456', location='europe-southwest1')
# Create a basic agentroot_agent=Agent()
# Create a library reference# Working version (without env_vars)remote_app=agent_engines.create(
display_name="data_science",
agent_engine=root_agent,
requirements=["google-cloud-aiplatform[adk,agent_engines]"],
)
# Version that FAILS with 500 errorenv_vars= {
"GOOGLE_GENAI_USE_VERTEXAI": "1",
"GOOGLE_CLOUD_PROJECT": "example-project-123456",
"GOOGLE_CLOUD_LOCATION": "us-central1",
"BQML_RAG_CORPUS_NAME": "default_corpus",
"BQ_PROJECT_ID": "example-project-123456",
"BQ_DATASET_ID": "cuvo_platform"
}
remote_app_with_env=agent_engines.create(
display_name="data_science_with_env",
agent_engine=root_agent,
requirements=["google-cloud-aiplatform[adk,agent_engines]"],
env_vars=env_vars
)
Stack trace
InternalServerError: 500 Please refer to our documentation (https://cloud.google.com/vertex-ai/generative-ai/docs/agent-engine/troubleshooting/deploy) for checking logs and other troubleshooting tips. 13: Please refer to our documentation (https://cloud.google.com/vertex-ai/generative-ai/docs/agent-engine/troubleshooting/deploy) for checking logs and other troubleshooting tips.
Additional information
I have tried checking the logs in Google Cloud Console, but there is no useful information available about the error.
I have also tried several alternatives for the format of env_vars:
using a simple dictionary (as shown above).
Using a list of strings with the variable names that exist in the environment.
Using SecretRef for sensitive values
Error 500 persists without providing details on the actual cause.
The documentation indicates that the env_vars parameter should accept both lists and dictionaries:
Environment details
google-cloud-aiplatform
version: 1.90.0Steps to reproduce
env_vars
parameterCode example
Stack trace
Additional information
I have tried checking the logs in Google Cloud Console, but there is no useful information available about the error.
I have also tried several alternatives for the format of env_vars:
Error 500 persists without providing details on the actual cause.
The documentation indicates that the env_vars parameter should accept both lists and dictionaries:
But in practice, neither format seems to work properly.
The text was updated successfully, but these errors were encountered: