The sandbox is running but port is not open - 49999
When trying to create a custom sandbox template, you might encounter the issue when trying to call .runCode / .run_code method using the E2B Code Interpreter SDK.The reason for this is that either the default start command is not specified on the template or that the base image is other than the Code Interpreter image thus the Code Interpreter inside the sandbox cannot be started.Example error
Copy
Ask AI
{"sandboxId":"ilmqag7sxz49zjc3gex7x","message":"The sandbox is running but port is not open","port":49999,"code":502}: 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.