A 409 means your request conflicts with the current state of the sandbox. In the TypeScript SDK it raises a ConflictError, for example when the sandbox is paused or has ended.
What to do
Read the sandbox's current state: get the sandbox, or list your sandboxes.
If it is paused, resume it and run the command again.
If it has ended (stopped, or its timeout ran out), start a new sandbox. A stopped sandbox cannot be brought back; its disk is deleted. Take a snapshot before stopping if you want to keep files.
Do not retry a 409 unchanged. It will answer the same.
If you see a message that a worker stopped responding
Treat the sandbox as unavailable. Check its state as above and start a new sandbox if it has ended. If new sandboxes also fail, wait a little and try again, because 5xx errors are worth retrying with backoff.
If it keeps happening, email [email protected] with:
The sandbox ID, the region and the template
The
request_idfrom the error (it matches theX-Request-IDresponse header)What you were doing and when, with a time zone
Docs: Errors.