You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello - we want to update some merged results on our instance using Looker SDK and Python. At the moment we are stuck to create a new merged_result_id which we need to update dashboards.
Everything works fine when I use Looker API Explorer in Looker, but when I then run the code (provided by the Looker API Explorer), I get the following Error: TypeError: Object of type MergeQuerySourceQuery is not JSON serializable. Looker SDK version is 24.18.1, so the latest.
I was also already in contact with Looker Support, but they could not help me.
In looker_sdk/rtl/serialize.py in the function called serialize, I changed the return from json.dumps(data.encode("utf-8") to json.dumps(data,default=lambda o: o.__dict__).encode("utf-8").
I did not test it if it breaks other stuff, but at least everything works for me now :)
Hello - we want to update some merged results on our instance using Looker SDK and Python. At the moment we are stuck to create a new merged_result_id which we need to update dashboards.
Everything works fine when I use Looker API Explorer in Looker, but when I then run the code (provided by the Looker API Explorer), I get the following Error:
TypeError: Object of type MergeQuerySourceQuery is not JSON serializable
. Looker SDK version is 24.18.1, so the latest.I was also already in contact with Looker Support, but they could not help me.
Here is the code I am trying to run:
The text was updated successfully, but these errors were encountered: