Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PageNotFoundError when auth is attempted #59

Open
pantherale0 opened this issue May 24, 2023 · 0 comments
Open

PageNotFoundError when auth is attempted #59

pantherale0 opened this issue May 24, 2023 · 0 comments

Comments

@pantherale0
Copy link

  • openwrt-luci-rpc version: 1.1.16
  • Python version: 3.10
  • Operating System: Windows 10 / HAOS

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):

home-assistant/core#87363

What I Did

_refresh_token()
@pantherale0 pantherale0 changed the title _refresh_token PageNotFoundError when auth is attempted May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant