You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
Any reason for this?
The text was updated successfully, but these errors were encountered:
telphan
changed the title
Re-creating bus results in 'No introspect'
Re-creating bus results in 'No Introspectable'
Jul 20, 2019
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?
The text was updated successfully, but these errors were encountered: