Hello, I have a question regarding the usage of APIClient
from clearml.backend_api.session.client import APIClient client = APIClient() events = client.events.download_task_log(task="2894e6ff98be4f2fab41a0d5df48da0f")
This would result in the following error:
` ---------------------------------------------------------------------------
APIError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 events = client.events.download_task_log(task="2894e6ff98be4f2fab41a0d5df48da0f")
File ~/mambaforge/envs/tainan-search/lib/python3.8/site-packages/clearml/backend_api/session/client/client.py:379, in make_action.<locals>.new_func(self, *args, **kwargs)
377 @wrap
378 def new_func(self, *args, **kwargs):
--> 379 return Response(self.session.send(request_cls(*args, **kwargs)))
File ~/mambaforge/envs/tainan-search/lib/python3.8/site-packages/clearml/backend_api/session/client/client.py:125, in StrictSession.send(self, request, *args, **kwargs)
123 raise APIError(result)
124 if not result.response:
--> 125 raise APIError(result, extra_info="Invalid response")
126 return result
APIError: APIError: Invalid response: code 200: {"level":"info","worker":"clearml-lt","msg":"ClearML Task: created new task id=2894e6ff98be4f2fab41a0d5df48da0f","@timestamp":"2022-09-21T08:59:00.709Z","metric":"","variant":"","company_id":"","asctime":1619936464857}
{"level":"info","worker":"clearml-lt","msg":"ClearML results page:
","@timestamp":"2022-09-21T08:59:00.709Z","metric":"","variant":"","company_id":"","asctime":1619936472949}
{"level":"info","worker":"clearml-lt","msg":"You can view your full hydra configuration under Configuration tab in the UI\ndataset:\n data: rawdata.csv\n user: root\n password: password\npipeline:\n pipeline_1: my_pipeline","@timestamp":"2022-09-21T08:59:00.709Z","metric":"","variant":"","company_id":"","asctime":1619936473665} `
The task is an official example https://github.com/allegroai/clearml/blob/master/examples/frameworks/hydra/hydra_example.py , and the task output is very simple as the attached screenshot below.
I'm testing it with a self-hosted clearml server, with clearml python package 1.7.0
.
Any idea what's wrong?