Coder Social home page Coder Social logo

Comments (4)

amosyuen avatar amosyuen commented on August 26, 2024

Have you tried setting the 443 port in the host e.g. 192.168.68.1:443?

from ha-tplink-deco.

sla004 avatar sla004 commented on August 26, 2024

Below is error log when I tried to insert :443 after ip'

This error is from custom integration.

Logger: custom_components.tplink_deco.coordinator
Source: custom_components/tplink_deco/api.py:445
Integration: TP-Link Deco (documentation, issues)
First occurred: 14.24.20 (3 occurrences)
Last logged: 14.26.53

Unexpected error fetching tplink_deco-decos data: Timeout exception. If you get a lot of these see https://github.com/amosyuen/ha-tplink-deco#timeout-error.
Traceback (most recent call last):
File "/config/custom_components/tplink_deco/api.py", line 409, in _async_post
response = await self._session.post(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request
await resp.start(conn)
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 899, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 616, in read
await self._waiter
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/config/custom_components/tplink_deco/api.py", line 408, in _async_post
async with async_timeout.timeout(self._timeout_seconds):
File "/usr/local/lib/python3.11/site-packages/async_timeout/init.py", line 129, in aexit
self._do_exit(exc_type)
File "/usr/local/lib/python3.11/site-packages/async_timeout/init.py", line 212, in _do_exit
raise asyncio.TimeoutError
TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tplink_deco/coordinator.py", line 166, in _async_update_data
new_decos = await async_call_and_propagate_config_error(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tplink_deco/coordinator.py", line 47, in async_call_and_propagate_config_error
return await func(*args)
^^^^^^^^^^^^^^^^^
File "/config/custom_components/tplink_deco/api.py", line 166, in async_list_devices
return await self._async_call_with_retry(self._async_list_devices)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tplink_deco/api.py", line 557, in _async_call_with_retry
raise err
File "/config/custom_components/tplink_deco/api.py", line 544, in _async_call_with_retry
return await func(*args)
^^^^^^^^^^^^^^^^^
File "/config/custom_components/tplink_deco/api.py", line 169, in _async_list_devices
await self.async_login_if_needed()
File "/config/custom_components/tplink_deco/api.py", line 317, in async_login_if_needed
await self.async_login()
File "/config/custom_components/tplink_deco/api.py", line 334, in async_login
await self._login_future
File "/config/custom_components/tplink_deco/api.py", line 326, in async_login
await self._async_login()
File "/config/custom_components/tplink_deco/api.py", line 343, in _async_login
await self._async_fetch_keys()
File "/config/custom_components/tplink_deco/api.py", line 264, in _async_fetch_keys
response_json = await self._async_post(
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tplink_deco/api.py", line 445, in _async_post
raise TimeoutException from err
custom_components.tplink_deco.exceptions.TimeoutException: Timeout exception. If you get a lot of these see https://github.com/amosyuen/ha-tplink-deco#timeout-error.

from ha-tplink-deco.

amosyuen avatar amosyuen commented on August 26, 2024

In release https://github.com/amosyuen/ha-tplink-deco/releases/tag/v3.6.0 I modified host field to include scheme so you can change it to HTTPS.

from ha-tplink-deco.

sla004 avatar sla004 commented on August 26, 2024

I just confirm that this change was working correctly after installing latest version

from ha-tplink-deco.

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.