Closed ValentaTomas closed 9 months ago
When you try to download an empty file from the sandbox you will get an error:
from e2b import CodeInterpreter sandbox = CodeInterpreter() sandbox.cwd = "/home" proc2 = sandbox.process.start("sudo touch /home/file.txt",on_stdout=print,on_stderr=print) proc2.wait() process_cwd = sandbox.process.start("ls",on_stdout=print,on_stderr=print) file_in_bytes = sandbox.download_file("/home/file.txt") with open("file.txt", "wb") as f: f.write(file_in_bytes)
Exception: Failed to download file '/home/file.txt'. Internal Server Error Error reading file: EOF
sandbox.filesystem.read should work without problems until we fix the file download.
sandbox.filesystem.read
E2B-442
We should check if the upload_file works with empty files too.
upload_file
Still this issue persists
This should be fixed, but you'll have to rebuild your sandbox template if you have any.
When you try to download an empty file from the sandbox you will get an error:
sandbox.filesystem.read
should work without problems until we fix the file download.E2B-442