fbradyirl / openwrt-luci-rpc

Other
34 stars 22 forks source link

PageNotFoundError when auth is attempted #59

Open pantherale0 opened 1 year ago

pantherale0 commented 1 year ago

Description

Unable to configure the HA luci integration due to openwrt_luci_rpc.exceptions.PageNotFoundError being raised during init.

After debugging and stepping through, it seems that this error starts when _refresh_token() is called.

Not sure if its to do with something going on with requests.Sessions() or not but I can confirm that the OpenWRT install has luci-mod-rpc installed and it does work if I use a 3rd party API tool to execute the same POST request.

OpenWRT version is "r23003-e2f9fa4204" (no stable for my device, only snapshot).

It seems like this issue has been reported in the hass repo too (including the same error that I get):

https://github.com/home-assistant/core/issues/87363

What I Did

_refresh_token()