Error fetching data question

Hi

My log is full of errors like this but the strange thing is that the sensors still works.
furthermore its a scrape sensor not a rest? so I don’t get that part either.

I’ve defined 4 scrape sensors in a row that are trying to pull information on the same website, you see 2 of them below this page.

Could it be that these 4 requests to the same URL are too many at the moment?
Can I somewhere define different pull moments in time? Because I now lean on the scan_interval of HA.

Logger: homeassistant.components.rest.data
Bron: components/rest/data.py:120
integratie: RESTful ([documentatie](https://www.home-assistant.io/integrations/rest), [problemen](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+rest%22))
Eerst voorgekomen: 17 juli 2024 om 13:17:21 (2809 gebeurtenissen)
Laatst gelogd: 08:51:54

* Error fetching data: https://www.tradegate.de/orderbuch.php?isin=IE00BZCQB185" failed with Server disconnected without sending a response.
* Error fetching data: https://www.tradegate.de/orderbuch.php?isin=IE00BZCQB185" failed with peer closed connection without sending complete message body (incomplete chunked read)

my yaml:

scrape:
  - resource: "https://www.tradegate.de/orderbuch.php?isin=IE00BZCQB185"
    scan_interval: 300
    sensor:
      - name: "test1"
        unique_id: test1
        select: ".longprice"
        value_template: >-
          {{ value.replace(',','.')|select('in','.-0123456789')|join }}
        index: 0
  - resource: "https://www.tradegate.de/orderbuch.php?isin=IE00BZCQB185"
    scan_interval: 300
    sensor:
      - name: "test2"
        unique_id: test2
        select: ".longprice"
        value_template: >-
          {{ value.replace(',','.')|select('in','.-0123456789')|join }}
        index: 1

Hi Bowa,
I would expect you could stop the errors by adding availability test.
Scrape - Home Assistant.

Thanks, but shouldn’t you tackle the problem at the source? so what I had in mind was that maybe because I fire 4 requests at the same time to the same URL, that could be the cause of the errors, so I rather should do something about that first?

I say that because you seem to get the data much of the time, and you have a 5 minute interval so you are not personally overloading anything.

It’s a scrape sensor, it will not always be successful. (In my opinion)