Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, I'M Trying To Run The Following Api Call

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 https://github.com/allegroai/clearml-server/blob/04ea9018a3c0cbb8a9e0044e5a24110883a0abfa/apiserver/schema/services/events.conf#L1170 , I think I'm making the call correctly.

CML Client version 1.1.6
I'm on the Free CML SaaS version

Is this a bug?

  
  
Posted 2 years ago
Votes Newest

Answers 18


Oh, no, I just fixed it 😄

  
  
Posted 2 years ago

Hi JumpyPig73 , this looks like a server-side error, what server are you using?

  
  
Posted 2 years ago

Thanks! Do you have a public bug tracker? If yes, are you able to share the issue number so I can follow it?
I need to put it into my code, so will be eagerly waiting for the fix

  
  
Posted 2 years ago

The easiest way to understand will be to look at the server's log and see the internal exception

  
  
Posted 2 years ago

The best wait is to open an issue in GitHub ( https://github.com/allegroai/clearml-server )

  
  
Posted 2 years ago

should appear in the apiserver's service log, using sudo docker logs apiserver

  
  
Posted 2 years ago

Also tagged you SuccessfulKoala55
Thanks for the quick support!

  
  
Posted 2 years ago

And what's the server version?

  
  
Posted 2 years ago

Will do!

  
  
Posted 2 years ago

Ok. I think I misunderstood what you said. I thought you meant you've already opened a bug ticket. If that's not the case, do you want to me create one on github?

  
  
Posted 2 years ago

I think there's some confusion here. I'm not running the server. My metrics are getting logged to the CML cloud.

  
  
Posted 2 years ago

OK, once I realized that, it was easy to find it 🙂 - it's a server bug, I'll make sure it's fixed soon

  
  
Posted 2 years ago

If that's not the case, do you want to me create one on github?

I would appreciate that 🙂

  
  
Posted 2 years ago

the CML free SaaS offering. It'll probably hit https://app.clear.ml/api if I'm not wrong

  
  
Posted 2 years ago

the CML free SaaS offering

Oh, I'm sorry, I missed that, my bad 🙂

  
  
Posted 2 years ago

I have no way to access your servers

  
  
Posted 2 years ago

Sorry if I sounded curt. Didn't mean to. To clarify, I've created my account using Google SSO on http://app.clear.ml , and am currently on the Free tier. I am pushing all my data onto CML's servers. This error happens when I try to query those servers for the metrics and variants for a particular task of mine.

  
  
Posted 2 years ago
928 Views
18 Answers
2 years ago
one year ago
Tags
Similar posts