mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[GH-ISSUE #305] bug: E2B TypeScript SDK 2.51.0 sandbox creation fails with HTTP 405 on /v2/sandboxes #79
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LSX-s-Software on GitHub (Sep 20, 2026).
Original GitHub issue: https://github.com/kvcache-ai/AgentENV/issues/305
Originally assigned to: @LSX-s-Software on GitHub.
Affected component
API server / proxy
AgentENV version
531a002b28f71df0df881237b3784fa326292f482.51.0v24.14.0Host environment
systemd-detect-virtreportsnone;/dev/kvmis availableOperation and configuration
The reproduction used isolated
AENV_HOME_PATH,AENV_RUNTIME_PATH, andAENV_DEPS_PATH, with matchingAENV_TEST_STATE_DIRandAENV_TEST_DEPS_PATH.scripts/tests/e2e/suites/09_e2b_compat.shinstallse2b@lateston every run. At reproduction time, this resolved to2.51.0.Steps to reproduce
Sandbox.create(templateName, { secure: true, timeoutMs: 90000, volumeMounts: { [mountPath]: volume }, ...connOpts }).SandboxError: 405: Method Not Allowedand a failed TypeScript SDK compatibility check.A smaller reproduction against a running test server is
Sandbox.create(templateName, connOpts)usinge2b@2.51.0; a volume is not required to trigger the routing failure.Expected behavior
The E2B SDK compatibility suite passes, including sandbox creation and subsequent lifecycle operations using the installed SDK.
Actual behavior
The SDK sends
POST /v2/sandboxes, but AgentENV registers onlyGET /v2/sandboxes. Sandbox creation is still registered atPOST /sandboxes. The request is rejected with HTTP 405 before reaching sandbox creation or volume-mount handling.The focused suite reproduced the reported result: seven checks passed, with only the TypeScript SDK check failing (
1/8 tests failed). The installed Python SDK was2.35.0; its compatibility check passed.Logs and diagnostics
Direct authenticated HTTP probes using an intentionally nonexistent template confirmed the routing difference:
Source references at the reproduced commit:
Reproduction frequency
Always with the tested SDK/server combination.
Regression information
e2b@2.51.0.e2b@latestallows the compatibility target to change without a repository change.Additional context
The installed SDK also uses
POST /v2/sandboxes/{sandboxID}/connect, while AgentENV currently exposes the unversioned connect endpoint. This additional gap was identified by source inspection; the failing E2E run stops at creation before reaching connect.Compatibility work should review both v2 endpoints and their request/default semantics, including secure sandbox behavior and timeout lifecycle defaults, rather than treating this solely as a path alias. Pinning a previously validated SDK can stabilize a baseline but does not establish compatibility with the latest SDK.
Related broader tracking issue: #5.
Pre-submission checklist