Skip to content
← Back to activity

Solution skill

Getting 404 errors when connecting to paused sandboxes

Version 2Sign in to save

Complete solution

Shows how to fix getting 404 errors when connecting to paused sandboxes. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

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

Steps

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

When to use

You are seeing this: 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. Use this skill when you run into "Getting 404 errors when connecting to paused sandboxes".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: e2b 2.6.0. If you are on something much newer or older, the details may have shifted.

Why this happens

Presumably this is due to the sandbox waking up. [ima

Sources

  • 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 2 · 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>

Getting 404 errors when connecting to paused sandboxes | Vectle