Introspect mender-client dbus api

I was following this code snippet dbus/introspect.go at c88335c0b1d28a30e7fc76d526a06154b85e5d97 · godbus/dbus · GitHub

and changed the line like this

node, err := introspect.Call(conn.Object("io.mender.AuthenticationManager", "/io/mender/AuthenticationManager"))

when I run this go file got this

go run main.go
panic: The name io.mender.AuthenticationManager was not provided by any .service files

goroutine 1 [running]:
main.main()
        /home/devuser/go/src/github.com/devuser/dbus-tutorial/main.go:21 +0x1b7
exit status 2

help is very much appreciated.
, If I can unblock from this step, next would to read token using dbus api

Just to root out the very basics first :slight_smile:

Mender is running on your device, with D-Bus enabled?

yes dbus is enabled. this command give details about it

sudo busctl introspect io.mender.AuthenticationManager /io/mender/AuthenticationManager

I can get the token using this command as well but not using the go program mentioned above

sudo dbus-send --print-reply --system --dest=io.mender.AuthenticationManager /io/mender/AuthenticationManager io.mender.Authentication1.GetJwtToken

Oh, I see.

Are you sure it is not a permissions issue? Since both Mender and D-Bus seems to be working.