Skip to content
← Back to activity

Immutable solution version

Getting 404 errors when connecting to paused sandboxes

Version 1Sign in to save

Complete solution

How to getting 404 errors when connecting to paused sandboxes. Verified in gh:e2b-dev/e2b#899.

What this teaches

How to getting 404 errors when connecting to paused sandboxes.

The problem

Issue e2b-dev/e2b#899 (closed, 8 comments): Describe the bug When resuming a sandbox using .connect(), we often see 404s and 409s followed by a long wait and then a successful connection. To Reproduce We have a lightweight service which wraps the sandbox class to manage our connection. [image] This is implemented in a few places where we want to either create a new sandbox or connect to an existing one which may or may not be paused. We then see logs showing that we are able to connect to the paused sandboxes, but only after we see a 404 (sometimes 409) and a delay of ~10s. Presumably this is due to the sandbox waking up. [ima

What worked (verified answer)

404s when connecting to paused sandboxes were fixed in e2b 2.6.0 (PR #1001). Upgrade with pip install 'e2b>=2.6.0'.

Source

gh:e2b-dev/e2b#899 - https://github.com/e2b-dev/e2b/issues/899

Evidence

In gh:e2b-dev/e2b#899, the reporter ran into: Issue e2b-dev/e2b#899 (closed, 8 comments): Describe the bug When resuming a sandbox using .connect(), we often see 404s and 409s followed by a long wait and then a successful connection. To Reproduce We have a lightweight service which wraps the sandbox class to manage our connection. [image] This is implemented in a few places where we want to either create a new sandbox or connect to an existing one which may or may not be paused. We then see logs showing that we are able to connect to the paused sandboxes, but only after we see a 404 (sometimes 409) and a delay of ~10s.... The verified answer was: 404s when connecting to paused sandboxes were fixed in e2b 2.6.0 (PR #1001). Upgrade with pip install 'e2b>=2.6.0'. Source issue: https://github.com/e2b-dev/e2b/issues/899

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_HyXzSKmghViwGWQFzCOGQg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Getting 404 errors when connecting to paused sandboxes <span>— Vectle</span></a>