I’m, trying curl (console), web browser and gpslogger test in app. all returns same error.
anyone to help me?
LOG ERROR:
Error handling request
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py”, line 381, in start
resp = await self._request_handler(request)
File “/usr/lib/python3.6/site-packages/aiohttp/web_app.py”, line 322, in _handle
resp = await handler(request)
File “/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py”, line 88, in impl
return await handler(request)
File “/usr/lib/python3.6/site-packages/homeassistant/components/http/static.py”, line 68, in staticresource_middleware
return await handler(request)
File “/usr/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py”, line 27, in real_ip_middleware
return await handler(request)
File “/usr/lib/python3.6/site-packages/homeassistant/components/http/ban.py”, line 68, in ban_middleware
return await handler(request)
File “/usr/lib/python3.6/site-packages/homeassistant/components/http/auth.py”, line 54, in auth_middleware
return await handler(request)
File “/usr/lib/python3.6/site-packages/homeassistant/components/http/view.py”, line 98, in handle
result = await result
File “/usr/lib/python3.6/site-packages/homeassistant/components/device_tracker/gpslogger.py”, line 87, in get
battery = float(data[‘battery’])
ValueError: could not convert string to float: ‘�TT’
yes initially I put the url as per the instructions of the component, but I was removing parameters to identify the error. and you are wrong that there must be all the parameters, because the url below works, but does not register the percent of battery.
I’m running HASS.IO 0.71.0. I was trying to configure gps logger but I get this error:
Error handling request
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 385, in start
resp = await self._request_handler(request)
File "/usr/lib/python3.6/site-packages/aiohttp/web_app.py", line 338, in _handle
resp = await handler(request)
File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 88, in impl
return await handler(request)
File "/usr/lib/python3.6/site-packages/homeassistant/components/http/static.py", line 68, in staticresource_middleware
return await handler(request)
File "/usr/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py", line 27, in real_ip_middleware
return await handler(request)
File "/usr/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 68, in ban_middleware
return await handler(request)
File "/usr/lib/python3.6/site-packages/homeassistant/components/http/auth.py", line 54, in auth_middleware
return await handler(request)
File "/usr/lib/python3.6/site-packages/homeassistant/components/http/view.py", line 98, in handle
result = await result
File "/usr/lib/python3.6/site-packages/homeassistant/components/device_tracker/gpslogger.py", line 85, in get
accuracy = int(float(data['accuracy']))
ValueError: could not convert string to float: '�C'
I raise an issue, but did not find any error in the homeassistant. gpslogger is opensource, I’m thinking of checking the code to see if I can identify what it can be. I believe that in some language there are going to be invalid characters, as happened to me (in Portuguese)