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

Repeat Discover Error - "Error: send EACCES " #34

Open
Xeonzinc opened this issue Feb 1, 2021 · 1 comment
Open

Repeat Discover Error - "Error: send EACCES " #34

Xeonzinc opened this issue Feb 1, 2021 · 1 comment

Comments

@Xeonzinc
Copy link

Xeonzinc commented Feb 1, 2021

Hi,

When running my initial discovery of LIFX bulbs this library always works perfectly, however on the second check (test at both 1m and 10m later), it consistently causes the following error and never returns the object of devices. My bulbs are not on 255.

Error: send EACCES 192.168.0.255:56700
    at doSend (dgram.js:683:16)
    at defaultTriggerAsyncIdScope (internal/async_hooks.js:313:12)
    at afterDns (dgram.js:629:5)
    at processTicksAndRejections (internal/process/task_queues.js:85:21)
    at runNextTicks (internal/process/task_queues.js:66:3)
    at processTimers (internal/timers.js:489:9) {
  errno: 'EACCES',
  code: 'EACCES',
  syscall: 'send',
  address: '192.168.0.255',
  port: 56700
}

Does anyone have any suggestions what may be causing this?

@Xeonzinc
Copy link
Author

Xeonzinc commented Feb 2, 2021

After a little more investigation it turns out the issue only occurred when running lifx.discovery alongside regular lifx.setColorFilter updates to the bulb. Some overlap between the functions must have caused the error. My workaround has been to pause updates via setColorFilter while the discovery function is running, although it doesn't quite solve the problem as this introduces a period where the lights are static.


Update - This doesn't seems to have solved it, the issue now seems to occur even when it didn't before.

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