From 21e2b7dcf79850a5332240adefa1baf56d9fa476 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 31 Jan 2026 01:03:58 +0000 Subject: [PATCH] Fix 'SocketIO' object has no attribute 'sendall' error The Docker exec socket wrapper doesn't expose the sendall method directly. This fix accesses the underlying socket via the _sock attribute when available, with a fallback for direct socket objects. https://claude.ai/code/session_01B9dpKXH8wbD7MPtPBDHrjq --- backend/app.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/app.py b/backend/app.py index 2b47ca8..11c5066 100644 --- a/backend/app.py +++ b/backend/app.py @@ -575,7 +575,12 @@ def handle_input(data): # Send input to the container sock = exec_instance.output - sock.sendall(input_data.encode('utf-8')) + # Access the underlying socket for sendall method + if hasattr(sock, '_sock'): + sock._sock.sendall(input_data.encode('utf-8')) + else: + # Fallback for direct socket objects + sock.sendall(input_data.encode('utf-8')) except Exception as e: logger.error(f"Error sending input: {e}", exc_info=True)