Subject of the issue
Error 500 from server during data pull from logbook/storage/ and data type “acc.xyz”, page_hits=200, page_num = 2
for page_num = 1 I’m able to download the results as shown below.
for obd.rpm and track.pos works fine.
Your environment
- Python 3.7 with anaconda on eclipse 2019-09 R
Steps to reproduce
- Setup the http get request.
params={"page_hits": 200, page_num : 2, "device_id": "DEVICE ID HERE", "data_type": "acc.xyz", "start_utc" : 2020-01-03T08:00:00, "end_utc": 2020-01-03T19:00:00}
URL = "https://api.autopi.io/logbook/storage/raw/
headers = {"Connection": "keep-alive","Content-Type": "application/json", "Accept": "application/json", "Authorization":"bearer %s" %self.token}
- Run the program.
import requests as _
response = _.get(URL,params = params, headers = headers)
print(response.text)
Expected behavior
No error and a response similar to these from page_num:1
{"count":19790,"results":[{"data":{"y":-0.03,"x":-0.03,"z":0.98},"ts":"2020-01-03T13:53:21.826237Z"},{"data":{"y":-0.04,"x":-0.04,"z":0.98},"ts":"2020-01-03T13:53:21.147826Z"},{"data":{"y":-0.04,"x":-0.04,"z":0.97},"ts":"2020-01-03T13:53:20.515250Z"},....
Actual behaviour
<h1>Server Error (500)</h1>