We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi David,
Here is the sample code, which I am trying to run the query, can you please suggest how to resolve the KeyError
import pandas as pd import json from pylooker.client import LookerClient api_endpoint = 'https://<my-looker-endpoint>:19999/api/3.1/' client_id = '<my-looker-client_id>' client_secret = '<my-looker-client_secret>' lc = LookerClient(api_endpoint, client_id, client_secret) query_data = lc.run_query('<my-looker-Query_ID>') print(type(query_data))
KeyError Traceback (most recent call last) <ipython-input-22-9041a9264702> in <module>() ---> 14 query_data = lc.run_query('<my-looker-Query_ID>') 15 print(type(query_data)) 16 #df = pd.DataFrame(look_data) ~\AppData\Local\Continuum\anaconda3\lib\site-packages\pylooker\client.py in run_query(self, slug, format, limit) 118 url="{}{}/run/{}?limit={}".format( 119 self.api_endpoint + "queries/", --> 120 slug_response.json()["id"], 121 format, 122 limit, KeyError: 'id'
The text was updated successfully, but these errors were encountered:
Hey there @Lathesh-B-L!
Would you mind trying with the 3.0 API endpoint (https://looker.company.com:19999/api/3.0/)?
3.0
https://looker.company.com:19999/api/3.0/
Sorry, something went wrong.
No branches or pull requests
Hi David,
Here is the sample code, which I am trying to run the query, can you please suggest how to resolve the KeyError
The text was updated successfully, but these errors were encountered: