- 
                Notifications
    You must be signed in to change notification settings 
- Fork 186
Description
Specifications
- Client Version: 1.42
- InfluxDB Version: 2.7.6
- Platform: Linux Alpine
Code sample to reproduce problem
Sorry but i don't know to "easily" reproduce. Code is very complex.
OK (there are data after Epoch 1714739400): from(bucket: "indicator") |> range(start: 1714739400)
KO (there are no data after Epoch 1801139400): from(bucket: "indicator") |> range(start: 1801139400)
All i know is if how you try to query in a range where start is above every records, you get Error 400:
But instead of e.status = 400
str(e.status).split("\n") gives this results
['(400)', 'Reason: Bad Request', "HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json; charset=utf-8', 'Vary': 'Accept-Encoding', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': 'v2.7.6', 'X-Platform-Error-Code': 'invalid', 'Date': 'Sat, 25 May 2024 09:32:30 GMT', 'Transfer-Encoding': 'chunked'})", 'HTTP response body: b\'{"code":"invalid","message":"error in building plan while starting program: cannot query an empty range"}\'', ''] 
type(e.status) --> <class 'influxdb_client.rest.ApiException'>
type(e.body) --> <class 'NoneType'>
It's like body was inside status
Expected behavior
type(e.status) --> int
and e.body.. like every e.body.
Actual behavior
type(e.status) --> <class 'influxdb_client.rest.ApiException'>
type(e.body) --> <class 'NoneType'>
str(e.status).split("\n")
`['(400)', 'Reason: Bad Request', "HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json; charset=utf-8', 'Vary': 'Accept-Encoding', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': 'v2.7.6', 'X-Platform-Error-Code': 'invalid', 'Date': 'Sat, 25 May 2024 09:32:30 GMT', 'Transfer-Encoding': 'chunked'})", 'HTTP response body: b'{"code":"invalid","message":"error in building plan while starting program: cannot query an empty range"}'', '']
Additional info
No response