Condorello / HASS_pws_scraper

HomeAssistant scraper for weather station based on ObserverIP box (es. FineOffset, Ambient Weather, Aercus etc).
6 stars 3 forks source link

Unexpected error fetching multiscrape data #2

Open slake119 opened 1 year ago

slake119 commented 1 year ago

I have everything installed correctly, however it is throwing the following error. Please let me know what I can do to fix this?

This error originated from a custom integration.

Logger: custom_components.pws_scrape.sensor Source: custom_components/pws_scrape/sensor.py:193 Integration: pws_scrape (documentation) First occurred: 5:39:30 PM (1 occurrences) Last logged: 5:39:30 PM

Unexpected error fetching multiscrape data: Traceback (most recent call last): File "/config/custom_components/pws_scrape/sensor.py", line 189, in async_update_data result = await response.text() File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1081, in text await self.read() File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1037, in read self._body = await self.content.read() File "/usr/local/lib/python3.10/site-packages/aiohttp/streams.py", line 375, in read block = await self.readany() File "/usr/local/lib/python3.10/site-packages/aiohttp/streams.py", line 397, in readany await self._wait("readany") File "/usr/local/lib/python3.10/site-packages/aiohttp/streams.py", line 304, in _wait await waiter asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/config/custom_components/pws_scrape/sensor.py", line 180, in async_update_data async with async_timeout.timeout(timeout): File "/usr/local/lib/python3.10/site-packages/async_timeout/init.py", line 129, in aexit self._do_exit(exc_type) File "/usr/local/lib/python3.10/site-packages/async_timeout/init.py", line 212, in _do_exit raise asyncio.TimeoutError asyncio.exceptions.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 250, in _async_refresh self.data = await self._async_update_data() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 206, in _async_update_data return await self.update_method() File "/config/custom_components/pws_scrape/sensor.py", line 193, in async_update_data raise UpdateFailed custom_components.pws_scrape.sensor.UpdateFailed

Condorello commented 1 year ago

Hi, move to this other project. It's really more stable. I'm running this since the creation without fails, it's a bit tricky to setup but Is woth.

https://github.com/Condorello/HASS_wu_interceptor

slake119 commented 1 year ago

I'll look into it, however a reboot of the Observer device appears to have resolved my issue.

Condorello commented 1 year ago

That's why i moved ti the other project... The observer box has a very limited amount of RAM and the http server on It Is configured with few virtuale Memory. Too much queries crash It, and it's unsolveble, we can only drecrease the frequency of quering but then web have older data in hass. The new project Is the way to go, i Hope to find some free times for refine the pluging, anyway It works!