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

Luci RPC call failure #753

Closed
SamJongenelen opened this issue Dec 15, 2015 · 4 comments
Closed

Luci RPC call failure #753

SamJongenelen opened this issue Dec 15, 2015 · 4 comments

Comments

@SamJongenelen
Copy link

Ok, so, continuing from my issue - which wasn't very well debugged, I now come with new information regarding my specific issue with HA + Luci on OpenWRT.

I've installed packages on my router: luci:
Package luci (git-15.248.30277-3836b45-1) installed in root is up to date.
and Luci-mod-rpc:
Package luci-mod-rpc (git-15.248.30277-3836b45-1) installed in root is up to date.

I am debugging the Luci.py and getting a response from line 138result = res.json()

error:
'{"id":null,"result":null,"error":{"message":"Invalid params.","data":"/usr/lib/lua/luci/controller/rpc.lua:55: attempt to index global \'luci\' (a nil value)","code":-32602}}'

The object:
obj

Any ideas? so it's a luci issue, but nevertheless, the luci implementation in HA is broken (or semi broken).

Can someone confirm it working? And with what luci version would that be

Perhaps @fbradyirl kan help me? (because of his findings in this issue perhaps

@SamJongenelen
Copy link
Author

So, I found the issue:
openwrt/luci#576

Fix; set luci timeout in config, or set the timeout hard in the luci-mod-rpc line 55

@Landrash
Copy link
Contributor

May I suggest that you document the fix/workaround in the documentation for HA?

@fbradyirl
Copy link
Contributor

Apologies Sam, I didnt see the notification of your post above.

@SamJongenelen
Copy link
Author

No problem found the issue all is well

@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants