home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.62k stars 30.78k forks source link

FreeBSD router integration is reporting an error #56183

Closed reotto613 closed 3 years ago

reotto613 commented 3 years ago

The problem

From the logs: Unexpected error fetching FreeBSD router data: Error during async_call(), status: 500, body: s:ClientUPnPError501Action Failed</s:Fault></s:Body></s:Envelope>

This issue causes the integration to not setup.

What is version of Home Assistant Core has the issue?

2021.9.6

What was the last working version of Home Assistant Core?

2021.7?

What type of installation are you running?

Home Assistant OS

Integration causing the issue

FreeBSD router UPnP/IGD

Link to integration documentation on our website

https://www.home-assistant.io/integrations/upnp/

Example YAML snippet

N/A

Anything in the logs that might be useful for us?

Logger: homeassistant.components.upnp
Source: components/upnp/device.py:165
Integration: UPnP/IGD (documentation, issues)
First occurred: 4:04:44 AM (66 occurrences)
Last logged: 8:20:38 AM

Unexpected error fetching FreeBSD router data: Error during async_call(), status: 500, body: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode><errorDescription>Action Failed</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>
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 "/usr/src/homeassistant/homeassistant/components/upnp/__init__.py", line 209, in _async_update_data
    update_values = await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/components/upnp/device.py", line 165, in async_get_status
    values = await asyncio.gather(
  File "/usr/local/lib/python3.9/site-packages/async_upnp_client/profiles/igd.py", line 176, in async_get_external_ip_address
    result = await action.async_call()
  File "/usr/local/lib/python3.9/site-packages/async_upnp_client/client.py", line 541, in async_call
    raise UpnpError(
async_upnp_client.exceptions.UpnpError: Error during async_call(), status: 500, body: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode><errorDescription>Action Failed</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>

Additional information

No response

probot-home-assistant[bot] commented 3 years ago

Hey there @stevenlooman, @ehendrix23, mind taking a look at this issue as it has been labeled with an integration (upnp) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)


upnp documentation upnp source (message by IssueLinks)

reotto613 commented 3 years ago

FYI...I am using a NETGATE 1100 PFSENSE+ Hardware.

StevenLooman commented 3 years ago

Thank you for this issue @reotto613. Recently two calls to get more information were added:

I think one of those calls returns an error, given that it did work before ~2021.7.

There are two things to do I think:

  1. You can open a ticket with Netgate stating that these calls don't work
  2. See if we can (and should) change the upnp integration to make these sensors causing the 5000-error optional