Skip to content

address not found or no data available #294

Description

@1mfaasj

The problem

Hi, sindskort zijn de afval sensors unknown met als error: Address not found or no data available!
enig idee waar dit mee te maken heeft?
ik heb meerdere adressen geprobeerd met postcode "6129".

Version of afvalwijzer integration having the issue?

2024.06.02

Version of Home Assistant Core having the issue?

2024.07

Anything in the logs that might be useful for us?

Logger: custom_components.afvalwijzer.const.const
Bron: custom_components/afvalwijzer/collector/mijnafvalwijzer.py:36
integratie: afvalwijzer (documentatie, problemen)
Eerst voorgekomen: 08:51:58 (1 gebeurtenissen)
Laatst gelogd: 08:51:58

Address not found or no data available!


& deze fout (heb de api key, postcode en huisnummer even eruit gehaald)


Logboek Details (FOUT)
Logger: homeassistant.components.sensor
Bron: helpers/entity_platform.py:364
integratie: Sensor (documentatie, problemen)
Eerst voorgekomen: 08:51:58 (1 gebeurtenissen)
Laatst gelogd: 08:51:58

Error while setting up afvalwijzer platform for sensor
Traceback (most recent call last):
  File "/config/custom_components/afvalwijzer/collector/mijnafvalwijzer.py", line 37, in get_waste_data_raw
    raise KeyError
KeyError

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

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/afvalwijzer/sensor.py", line 68, in async_setup_platform
    collector = await hass.async_add_executor_job(
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/afvalwijzer/collector/main_collector.py", line 43, in __init__
    waste_data_raw = mijnafvalwijzer.get_waste_data_raw(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/afvalwijzer/collector/mijnafvalwijzer.py", line 39, in get_waste_data_raw
    raise KeyError(f"Invalid and/or no data received from {url}") from err
KeyError: 'Invalid and/or no data received from https://api.mijnafvalwijzer.nl/webservices/appsinput/?apikey=XXX&method=postcodecheck&postcode=XXX&street=&huisnummer=XXX&toevoeging=&app_name=afvalwijzer&platform=web&afvaldata=2024-07-09&langs=nl&'

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions