allegroai / clearml-server

ClearML - Auto-Magical CI/CD to streamline your AI workload. Experiment Management, Data Management, Pipeline, Orchestration, Scheduling & Serving in one MLOps/LLMOps solution
https://clear.ml/docs
Other
381 stars 132 forks source link

`events.get_scalar_metrics_and_variants` returns 500 error from ClearML SaaS server #120

Closed bdalal closed 1 year ago

bdalal commented 2 years ago

Hi, I'm trying to run the following API call

# Imports
...
client = APIClient()
resp = client.events.get_scalar_metrics_and_variants("MY_TASK_ID")

but it errors out with

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/binoydalal/miniconda3/envs/DS974/lib/python3.9/site-packages/clearml/backend_api/session/client/client.py", line 376, in new_func
    return Response(self.session.send(request_cls(*args, **kwargs)))
  File "/home/binoydalal/miniconda3/envs/DS974/lib/python3.9/site-packages/clearml/backend_api/session/client/client.py", line 122, in send
    raise APIError(result)
clearml.backend_api.session.client.client.APIError: APIError: code 500: 'str' object has no attribute 'value'

Based on the schema definition here, I think I'm making the call correctly.

CML Client version 1.1.6 I'm on the CML hosted SaaS server

CC @jkhenning

jkhenning commented 1 year ago

Closing this as it was already fixed in released versions. Please reopen if required.