node-wifi icon indicating copy to clipboard operation
node-wifi copied to clipboard

wifi.scan stopped working on Debian Buster in latest update (2.0.7)

Open JeffJassky opened this issue 6 years ago • 1 comments

wifi.scan() returns new error after updating from 2.0.5 to 2.0.7.

Expected Behavior

Should return list of networks

Current Behavior

Returns error Error: Command failed: nmcli --terse --fields active,ssid,bssid,mode,chan,freq,signal,security,wpa-flags,rsn-flags,device device wifi Error: Could not create NMClient object: Could not connect: No such file or directory.

Affected features

  • [X] node API
  • [ ] cli

Possible Solution

Workaround: Use 2.0.5 for now

Steps to Reproduce (for bugs)

Install node-wifi 2.0.7 on Debian Buster and run wifi.scan()

Context

Just updating packages

Your Environment

  • OS: Debian Buster
  • node-wifi version: 2.0.7
  • wifi card: Raspberry Pi 3b+ built-in

JeffJassky avatar Aug 14 '19 15:08 JeffJassky

The error who have seems to come from directly from nmcli. I am not able to find which difference between 2.0.5 and 2.0.7 might have an impact like this. I am also not able to reproduce this error but I only have Ubuntu 18.04.2 to test linux.

Please can you provide the version of nmcli you are using with nmcli --version?

friedrith avatar Aug 15 '19 02:08 friedrith