Skip to main content
If you call .runCode / .run_code from the E2B Code Interpreter SDK against a custom template and see this error, the Code Interpreter service inside the sandbox didn’t start. This usually happens because the template was built without the Code Interpreter base image, or because the start command was not set. Example error

Solution

The simplest fix is to base your template on the official code-interpreter-v1 template, which already includes the start command and the Code Interpreter service.
We strongly recommend the approach above. If you need to build from the Docker image directly instead, you must also set the start command yourself: