Open SGStino opened 2 years ago
Turns out, ...
"imports": None,
"package": None,
are really required, or it gives json errors.
So, the minimal implementation for this is:
from influxdb_client import Query, InfluxDBClient
client = InfluxDBClient(url="https://influx.local/", token="....", org=org)
api = client.query_api()
query = Query(**create_request(query2, start, stop))
response = api._query_api.post_query(org=org, query=query,
async_req=False, _preload_content=False, _return_http_data_only=False)
api._to_tables(response, query_options=api._get_query_options())
Mainly, can we somehow get this extern (snooped from chrome's dev tools):
I'm guessing the
Query()
object needs to be created with an extern set like this, however, I am getting json serialization errors.where create_request is:
But i cant seem to find the json it sends to the server to get this error: