Comments (4)
I got this same error this morning.
Logger: homeassistant.setup
Source: helpers/update_coordinator.py:161
First occurred: 10:04:38 AM (1 occurrences)
Last logged: 10:04:38 AM
Error during setup of component petkit
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/petkit/__init__.py", line 239, in _async_update_data
dls = await self.account.get_devices()
File "/config/custom_components/petkit/__init__.py", line 216, in get_devices
rsp = await self.request(api)
File "/config/custom_components/petkit/__init__.py", line 164, in request
return await req.json() or {}
File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1103, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('http://api.petkt.com/latest/discovery/device_roster')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 227, in _async_setup_component
result = await task
File "/config/custom_components/petkit/__init__.py", line 86, in async_setup
await coordinator.async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 161, in async_config_entry_first_refresh
raise ex
homeassistant.exceptions.ConfigEntryNotReady: 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('http://api.petkt.com/latest/discovery/device_roster')
from petkit.
I wasn't able to debug (not sure how to add this to logs), but, my previously working config was also broken upon a reboot today. US based
The following integrations and platforms could not be set up:
[petkit](https://github.com/hasscc/petkit)
Please check your config and logs.
from petkit.
Maybe it's server went wrong and returned invalid data. If it haven't recovered by now, upgrade to the master branch and check the new error logs.
from petkit.
Was issue on Petkit side. Not related to addon.
from petkit.
Related Issues (20)
- pet_weight in Puramax is set only the very first time of a day HOT 2
- Pura Max can't use "cleanup" and "continue" HOT 3
- Beginners Guide Request HOT 2
- FRESH ELEMENT food state doesn't change to "Problem" when there is insufficient food.
- Login error code 125 HOT 5
- Water Fountain Represented as Feeder HOT 2
- PURA X Usage Time
- Feature request: allow installation via HACS
- Username needs better explanation
- Feature request: group entities under a single device (Fit 3)
- Feature request: turn P3 data into statistical details
- 智能猫厕所MAX,手动清理求助。 HOT 1
- Official cooperation
- Error 125 and general set up
- Doesn't work (Install by wget)
- 喂食器未找到设备,饮水机提示更新软件
- Error when calling feeding switch HOT 5
- UK integration not working HOT 2
- Update to new api endpoints
- 天气预报的服务器域填什么啊 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from petkit.