@e2b/python-sdk@2.52.1
E2B updated its SDK with BuildKit-compliant .dockerignore filtering and safer HTTP 502 retry handling to prevent duplicate resource creation.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Release @e2b/python-sdk@2.52.1 introduces two key patch changes. First, template build context filtering with .dockerignore now matches BuildKit behavior: leading literal characters match at any depth, negated patterns matching only a parent directory no longer re-include the path, and wildcard/bracket expressions properly match non-BMP characters as single units. Second, the SDK alters its retry logic for HTTP 502 Bad Gateway responses. Because gateways may return 502 after the API processes a request, resource-creating POST requests (such as sandbox creation, fork, snapshot, and secret updates via POST /secrets/{id}) are no longer retried on 502 or dropped connections to prevent duplicate entities or unwanted version increments. HTTP 503 responses continue to be retried across all operations.
可执行摘要
E2B Python SDK v2.52.1 restricts automatic HTTP 502 retries to replay-safe operations to prevent duplicate sandbox creations or secret versions, and updates template context .dockerignore parsing to align with BuildKit.
- Agent 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Upgrade to @e2b/python-sdk@2.52.1.
- Verify application-level error handling for 502 Bad Gateway responses during sandbox creation, forking, snapshots, or secret updates, as the SDK no longer retries them automatically.
- Review .dockerignore files used in template builds to ensure compatibility with updated BuildKit-aligned pattern parsing rules.