-
Notifications
You must be signed in to change notification settings - Fork 31
Description
my sdk test script:
`from agentcube import CodeInterpreterClient
Initialize and start session
client = CodeInterpreterClient(
name="my-agent",
namespace="test",
ttl=3600,
verbose=True
)
Check the current user and directory
output = client.execute_command("whoami && pwd")
print(output)but i get some log2026-01-14 09:01:52,302 | INFO | agentcube.code_interpreter | Creating new session...
2026-01-14 09:01:52,302 | DEBUG | agentcube.clients.control_plane.ControlPlaneClient | Creating session at http://workloadmanager.volcano-agentcube.svc.cluster.local:8080/v1/code-interpreter with payload: {'name': 'zlz-agent', 'namespace': 'planning-test', 'ttl': 3600, 'metadata': {}}
2026-01-14 09:01:52,370 | INFO | agentcube.code_interpreter | Session created: 24760696-5a13-4794-ae5d-17925e321d5d
2026-01-14 09:01:52,370 | DEBUG | agentcube.clients.data_plane.DataPlaneClient | POST http://agentcube-router.volcano-agentcube.svc.cluster.local:8080/v1/namespaces/planning-test/code-interpreters/zlz-agent/invocations/api/execute
Traceback (most recent call last):
File "/app/test_code_interpreter.py", line 11, in
output = client.execute_command("whoami && pwd")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/agentcube/code_interpreter.py", line 204, in execute_command
return self.dp_client.execute_command(command, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/agentcube/clients/data_plane.py", line 150, in execute_command
resp.raise_for_status()
File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1026, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: http://agentcube-router.volcano-agentcube.svc.cluster.local:8080/v1/namespaces/planning-test/code-interpreters/zlz-agent/invocations/api/execute`