I’m using the http version of owntracks with the app on a Pixel 2. When sending my location all I ever see is a generic error that doesn’t seem to tell me anything useful.
I set up a json server to verify what is being sent and I get the below(location anonymized):
{
“_type”: “location”,
“tid”: “ye”,
“acc”: 16,
“batt”: 0,
“lat”: XX.7545195,
“lon”: -XX.1319193,
“t”: “u”,
“tst”: 1526068449,
“id”: 3
}
As the configuration is literally nothing more than a line to add owntracks I don’t think it’s my setup but I can’t think of where else to look. I’m sending good data, and it’s being received. Direction as to where to look next would be appreciated.
resp = await self._request_handler(request)
File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_app.py", line 322, in _handle
resp = await handler(request)
File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_middlewares.py", line 88, in impl
return await handler(request)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/static.py", line 68, in staticresource_middleware
return await handler(request)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/real_ip.py", line 27, in real_ip_middleware
return await handler(request)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/ban.py", line 68, in ban_middleware
return await handler(request)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/auth.py", line 52, in auth_middleware
return await handler(request)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/view.py", line 104, in handle
result = await result
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/owntracks_http.py", line 50, in post
message = yield from request.json()
File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_request.py", line 537, in json
return loads(body)
File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/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)```