Giter VIP home page Giter VIP logo

Comments (4)

ksheumaker avatar ksheumaker commented on June 6, 2024

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.

yieldhog avatar yieldhog commented on June 6, 2024

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.

al-one avatar al-one commented on June 6, 2024

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.

Anian-igor avatar Anian-igor commented on June 6, 2024

Was issue on Petkit side. Not related to addon.

from petkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.