volcano-sh / volcano-sh/agentcube
"hello world agentcube SDK script do not work
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 167
- Forks
- 88
- Avg merge
- 44m
- Merged PRs (30d)
- 1
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`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reproduction in /app/test_code_interpreter.py, then trace the request through agentcube/code_interpreter.py and agentcube/clients/data_plane.py. Inspect the failing POST to the code-interpreter invocation endpoint and the returned 502 response. Done means the reported SDK command completes successfully or the failure is clearly surfaced with an actionable cause.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100