looker-open-source / henry

A command line tool for Looker instance cleanup
MIT License
79 stars 27 forks source link

Must query at least one dimension or measure #86

Open ice-ctrl opened 2 months ago

ice-ctrl commented 2 months ago

Hi, I get the following error:

looker_sdk.error.SDKError: 
    message:           Must query at least one dimension or measure
    documentation_url: https://cloud.google.com/looker/docs/r/err/4.0/400/post/queries/run/:result_format
    error_doc_url:     https://static-a.cdn.looker.app/errorcodes/400.md
    error details:

Is Henry still maintained? I guess it has to do with the looker_sdk update.

More details:

Traceback (most recent call last):
  File "/opt/anaconda3/envs/py38/bin/henry", line 8, in <module>
    sys.exit(main())
  File "/opt/anaconda3/envs/py38/lib/python3.8/site-packages/henry/cli.py", line 16, in main
    pulse.Pulse.run(user_input)
  File "/opt/anaconda3/envs/py38/lib/python3.8/site-packages/henry/commands/pulse.py", line 21, in run
    pulse.check_dashboard_performance()
  File "/opt/anaconda3/envs/py38/lib/python3.8/contextlib.py", line 75, in inner
    return func(*args, **kwds)
  File "/opt/anaconda3/envs/py38/lib/python3.8/site-packages/henry/commands/pulse.py", line 92, in check_dashboard_performance
    resp = self.sdk.run_inline_query("json", request)
  File "/opt/anaconda3/envs/py38/lib/python3.8/site-packages/looker_sdk/sdk/api40/methods.py", line 9222, in run_inline_query
    self.post(
  File "/opt/anaconda3/envs/py38/lib/python3.8/site-packages/looker_sdk/rtl/api_methods.py", line 188, in post
    return self._return(response, structure)
  File "/opt/anaconda3/envs/py38/lib/python3.8/site-packages/looker_sdk/rtl/api_methods.py", line 101, in _return
    raise sdk_error
rbob86 commented 2 months ago

https://github.com/looker-open-source/henry/pull/85