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
{{ message }}
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
I am trying to perform a valid query to a remote influx database. It will fail for certain time frames.
query = "SELECT * FROM {} WHERE \
time > '{}' and time < '{}'".format(metric, str(start_date)[:10],
str(end_date)[:10])
raw_tweets = client.query(query, database=dbname)
Will fail with:
File "/usr/lib/python3.6/site-packages/influxdb/client.py", line 400, in query
data = response.json()
File "/usr/lib/python3.6/site-packages/requests/models.py", line 892, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Why would be the response not be a valid JSON object?
If you execute that same query via the CLI, is there data returned? Also, what version(s) of InfluxDB and this python library are you currently running?
Activity
xginn8 commentedon Mar 11, 2018
If you execute that same query via the CLI, is there data returned? Also, what version(s) of InfluxDB and this python library are you currently running?
xginn8 commentedon Jul 1, 2018
Closing due to lack of response -- we can reopen if needed.
cemanughian commentedon Aug 13, 2019
I am having the same issue
vshah-lifesize commentedon Oct 10, 2019
Facing the same issue. Please reopen..
rbdm-qnt commentedon Mar 26, 2020
Same issue here
william-allen-harris commentedon May 1, 2020
same problem
salvapinyol commentedon Nov 13, 2020
same problem here using influxdb 2.0.1. Please reopen.
TheOneValen commentedon Mar 4, 2021
same problem 2.0.3
harmv commentedon Feb 17, 2022
Same problem, could not reopen, filed #915 with more details (and a patch/workaround)