You may need to grant the application access to bluetooth under which your service runs (runtime). This can be done via System Preferences > Security & Privacy > Privacy > Bluetooth.
I had a similar issue for a daemon that runs via node js. I ended up granting permission to /usr/local/bin/node and that fixed my issue.