question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Returning [] empty array on macOS Monterey

See original GitHub issue

Expected behavior

When scanning networks either by node API using wifi.scan or with the CLI using npx node-wifi-cli --scan Should return list of scanned networks.

Current behavior

When scanning networks either by node API using wifi.scan or with the CLI using npx node-wifi-cli --scan, it returns [] an empty array. No errors, just an empty list.

Which are the affected features

  • node API
  • CLI

Which is your operating system?

MacOS

Environment

  • Macbook Pro 16" Intel Big Sur: working
  • Macbook Pro 16" Intel Monterey: empty list
  • iMac Intel Monterey: empty list

Version of node-wifi

2.0.15

Steps to Reproduce

Scan networks by either CLI or node-wifi api and log the result.

Solutions

I’m wondering if there are any new permissions to manage the wifi hardware on Monterey. There were no dialogs shown whatsoever when trying to use the CLI or the node app we are developing that relies on this lib.

Also tried using debug: true as a parameter for the wifi.init but couldn’t see any additional info when logging the resulting networks.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
friedrithcommented, Sep 29, 2021

Yes it helps a lot. Besides using xml is safer than parsing the command output. It was in the roadmap but I guess we just have to reprioritize this feature. I will work on it.

1reaction
friedrithcommented, Oct 22, 2021

node-wifi and node-wifi-cli fixes have been released. I hope it will work for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

window.speechSynthesis.getVoices() returns empty array on ...
speechSynthesis.getVoices() returns an empty array ([]) on my browser (macOS 12.3.1, Safari 15.4). On the previous versions (Safari ...
Read more >
Serious bugs remaining in Monterey: a working list
This article details serious bugs remaining in macOS 12.5 Monterey. If Apple is true to the pattern set in Big Sur, and in...
Read more >
S3 DeleteObjects sdk calls with empty Delete.Objects ... - GitHub
Describe the bug Trying to delete objects using code like this: _, err = svc.DeleteObjects(&s3.DeleteObjectsInput{ Bucket: &bucketName ...
Read more >
CodeSign issue | Apple Developer Forums
We have a persistent CodeSign issue with the following error shown in the log when running an iOS build on a Jenkins node...
Read more >
Telnet in Monterey - macos - Apple StackExchange
This assumes that launchctl getenv PATH returns an empty string and that telnet is in the shells PATH. Explanation. Applications can register ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found