# Introspect mender-client dbus api

**URL:** <https://hub.mender.io/t/introspect-mender-client-dbus-api/3815>\
**Category:** General Discussions\
**Tags:** mender-client, dbus\
**Created:** [July 1, 2021, 2:08am UTC](https://hub.mender.io/t/introspect-mender-client-dbus-api/3815 "2021-07-01T02:08:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mokul](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mokul/32/1286_2.png) [@mokul](https://hub.mender.io/u/mokul)\
**Post date:** [July 1, 2021, 2:08am UTC](https://hub.mender.io/t/introspect-mender-client-dbus-api/3815/1 "2021-07-01T02:08:44Z")

</div>

I was following this code snippet [dbus/introspect.go at c88335c0b1d28a30e7fc76d526a06154b85e5d97 · godbus/dbus · GitHub](https://github.com/godbus/dbus/blob/c88335c0b1d28a30e7fc76d526a06154b85e5d97/_examples/introspect.go)

and changed the line like this

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

```

when I run this go file got this

```auto
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

---

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [July 1, 2021, 9:00am UTC](https://hub.mender.io/t/introspect-mender-client-dbus-api/3815/2 "2021-07-01T09:00:37Z")

</div>

Just to root out the very basics first 🙂

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

---

<div class="post-metadata">

**Author:** ![mokul](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mokul/32/1286_2.png) [@mokul](https://hub.mender.io/u/mokul)\
**Post date:** [July 1, 2021, 2:55pm UTC](https://hub.mender.io/t/introspect-mender-client-dbus-api/3815/3 "2021-07-01T14:55:54Z")

</div>

yes dbus is enabled. this command give details about it

```auto
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

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

```

---

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [July 2, 2021, 8:45am UTC](https://hub.mender.io/t/introspect-mender-client-dbus-api/3815/4 "2021-07-02T08:45:27Z")

</div>

Oh, I see.

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