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

Re-creating bus results in 'No Introspectable' #206

Open
telphan opened this issue Jul 20, 2019 · 2 comments
Open

Re-creating bus results in 'No Introspectable' #206

telphan opened this issue Jul 20, 2019 · 2 comments

Comments

@telphan
Copy link

telphan commented Jul 20, 2019

Here is a little example code that I use:

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?

@telphan telphan changed the title Re-creating bus results in 'No introspect' Re-creating bus results in 'No Introspectable' Jul 20, 2019
@jfether
Copy link

jfether commented Nov 13, 2019

Duplicate of #183.

@qubiack
Copy link

qubiack commented May 8, 2020

Try to run this in your terminal:

qdbus org.freedesktop.NetworkManager /org/freedesktop/NetworkManager/Settings

Do you get any response? If not, probably you try to use inaccessible resources.

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

3 participants