googleapis / googleapis/python-aiplatform

Vertex AI Agent Engine sandbox `:execute` returning 404 NOT_FOUND in us-central1

未关闭
#6,706 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
api: vertex-ai
主要语言
Python
星标
905
派生
465
平均合并
1 天 13 小时
30 天内合并 PR
44

描述

## Summary

Since 2026-04-28 ~18:51 UTC, calls to the Vertex AI Agent Engine sandbox `:execute` endpoint return `404 NOT_FOUND` ("Requested entity was not found.") for newly created sandboxes in `us-central1`. The sandbox is verified to be in `STATE_RUNNING` immediately before the failing call. Affects both production and staging projects, consistent with a server-side rollout.

## Versions

- `google-cloud-aiplatform==1.133.0`
- `google-genai==1.73.1`
- `google-adk==1.29.0`
- Python 3.11

## Repro

`client.agent_engines.sandboxes.execute_code(...)` posts:

```http
POST https://us-central1-aiplatform.googleapis.com/v1//:execute
Content-Type: application/json

{ "inputs": [{ "mimeType": "application/json",
"data": "" }] }
```

Manual probing confirms `:execute` is reachable and validates input:

| Body | HTTP |
|---|---|
| `{"inputs":[{"mimeType":"application/json","data":<...>}]}` (current SDK shape) | **404** |
| `{"inputs":[{"mimeType":"text/x-python","data":<...>}]}` | 400 INVALID_ARGUMENT |
| `{"inputs":[{"mimeType":"text/plain","data":<...>}]}` | 400 INVALID_ARGUMENT |
| `{"inputData": ...}` (legacy) | 400, "Unknown name 'inputData'" |
| `{"code": "..."}` | 400, "Unknown name 'code'" |
| Legacy `:executeCode` | 404 (empty body) |

## Additional findings

1. **Race / propagation ruled out.** Re-running with a 10s wait after `STATE_RUNNING` reproduces the same 404.
2. **`GET `** returns only `name, displayName, createTime, updateTime, state, spec, expireTime`. No `connectionInfo` field. Per commit [`677b55e`](https://github.com/googleapis/python-aiplatform/commit/677b55e), `SandboxEnvironmentConnectionInfo` is where `routing_token` lives in the new schema. The server isn't returning that block, so no client (old or new) has anything to forward.
3. **HEAD-of-`main` SDK reproduces the same 404.** Built python-aiplatform from `main` at HEAD (commit `0bb2ecd`, past `677b55e`), called `execute_code()` against a fresh staging sandbox in `STATE_RUNNING`. Result was identical: `ClientError 404 NOT_FOUND. {'error': {'code': 404, 'message': 'Requested entity was not found.', 'status': 'NOT_FOUND'}}`. The HEAD SDK still emits the `mimeType=application/json` shape because the server never populates `connectionInfo`.
4. The reproducer ran as the same service account our live staging Cloud Run service runs as, ruling out an IAM artefact specific to a probing identity.

## Hypothesis

A server-side rollout to `:execute` in `us-central1` on or around 2026-04-28T18:00 UTC changed the contract to require routing information that the API does not currently expose on the sandbox `GET` payload. The fix may need to ship server-side.

## Asks

1. Can you confirm whether a server-side change to Agent Engine sandbox `:execute` was rolled out in `us-central1` on/around 2026-04-28T18:00 UTC.
3. Any interim server-side workaround / route still accepting the previous shape?

Tracked internally on Google IssueTracker [507490536](https://issuetracker.google.com/issues/507490536).

贡献指南

打开贡献指南

调研方向

首先通过 client.agent_engines.sandboxes.execute_code(...) 重现该故障,并使用 issue 中列出的请求形状和 SDK 版本,将其与 sandbox GET 响应进行比较。检查缺少的 connectionInfo 和 routing_token 是否可以在 client 中解决;完成的标准是确定一项 client-side 更改,或确认需要 server-side rollout 或 workaround。

由索引模型根据 Issue 内容生成。

评估

技术栈
google-cloud, python
领域
ai, api
Issue 类型
缺陷
难度
5/5
预计耗时
一周以上
活跃度
冷清
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。