d = require('.')
b = d.getBus('system')
b.getInterface('org.freedesktop.NetworkManager', '/org/freedesktop/NetworkManager/Settings', 'org.freedesktop.NetworkManager.Settings', console.log)
a = d.getBus('system')
a.getInterface('org.freedesktop.NetworkManager', '/org/freedesktop/NetworkManager/Settings', 'org.freedesktop.NetworkManager.Settings', console.log)
The first getInterface call returns successfully with the dbus object, but if I try to getBus again it results in 'No Introspectable', the real error being:
{ Error: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
at new DBusError (/home/telphan/scratchpad/node-dbus/lib/error.js:9:9)
at createError (/home/telphan/scratchpad/node-dbus/lib/bus.js:242:9)
message:
'Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.',
dbusName: 'org.freedesktop.DBus.Error.NoReply' }
Calling disconnect() between the two getBus does not help either.
The following snippet also results in the same error:
d = require('.')
b = d.getBus('system')
b.reconnect()
b.getInterface('org.freedesktop.NetworkManager', '/org/freedesktop/NetworkManager/Settings', 'org.freedesktop.NetworkManager.Settings', console.log)
Here is a little example code that I use:
The first getInterface call returns successfully with the dbus object, but if I try to getBus again it results in 'No Introspectable', the real error being:
Calling disconnect() between the two getBus does not help either.
The following snippet also results in the same error:
Any reason for this?