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

bad argument #1 to 'type' (string expected, got nil) #14

Open
Sorinaki opened this issue Mar 27, 2021 · 0 comments
Open

bad argument #1 to 'type' (string expected, got nil) #14

Sorinaki opened this issue Mar 27, 2021 · 0 comments

Comments

@Sorinaki
Copy link

Sorinaki commented Mar 27, 2021

I'm not at all good with lua, so I don't quite get it how local wireless_status = conn:call("network.wireless", "status", {}) parses the devices, but a little dbg on line 401 shows that the radio1 returns nothing.
Any idea why iface.ifnames returns nil?

wifi-disconnect-low-signal: radio1: Device nil Section default_radio1
/usr/bin/lua: /usr/bin/wifi-disconnect-low-signal.lua:201: bad argument #1 to 'type' (string expected, got nil)
stack traceback:
[C]: in function 'type'
/usr/bin/wifi-disconnect-low-signal.lua:201: in function 'new'
/usr/bin/wifi-disconnect-low-signal.lua:404: in function 'get_wifi_devices'
/usr/bin/wifi-disconnect-low-signal.lua:438: in main chunk
[C]: ?

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