Question

I experienced an issue with Python SDK function "all user attribute group values"

  • 18 August 2020
  • 0 replies
  • 299 views

Using Python 3.7 with the latest version of SDK

The is no issue to execute all_user_attribute_group_values for a group without any user_attributes


import looker_sdk
sdk = looker_sdk.init40("~/looker.ini")
sdk.all_user_attribute_group_values(19)

[]


But the same call for a group with associated user_attributes returns an error


sdk.all_user_attribute_group_values(20)

Traceback (most recent call last):

File “”, line 1, in

File “/home/grayzman/.local/lib/python3.6/site-packages/looker_sdk/sdk/api40/methods.py”, line 903, in all_user_attribute_group_values

transport_options=transport_options,

File “/home/grayzman/.local/lib/python3.6/site-packages/looker_sdk/rtl/api_methods.py”, line 152, in get

return self._return(response, structure)

File “/home/grayzman/.local/lib/python3.6/site-packages/looker_sdk/rtl/api_methods.py”, line 88, in _return

raise error.SDKError(response.value.decode(encoding=encoding))

looker_sdk.error.SDKError: {“message”:“Not found”,“documentation_url”:“http://docs.looker.com/”}


Thanks for any suggestions!


0 replies

Be the first to reply!

Reply