Skip to content

The sandbox was not found #147

@ytongshang

Description

@ytongshang

I opened an e2b sandbox, successfully wrote a file, and set the timeout to one day. However, after a few minutes, when I tried to call the shell again, it returned an error saying the sandbox didn't exist. My account is a pro account. How can I fix this? I am using the Python SDK, and the error is e2b.exceptions.TimeoutException: The sandbox was not found: This error is likely due to sandbox timeout. You can modify the sandbox timeout by passing 'timeout' when starting the sandbox or calling '.set_timeout' on the sandbox with the desired timeout.

Note: The sandbox uses our custom template and the memory and CPU have been modified to 2 cores and 2 GB. This "sandbox not found" issue is not a consistent one; it happens sometimes but not always. The API service seems to be quite unstable. Is there a way to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions