# App won't read the config from config.ini

**URL:** <https://devforum.zoom.us/t/app-wont-read-the-config-from-config-ini/104385>\
**Category:** Meeting SDK\
**Created:** [February 22, 2024, 11:03am UTC](https://devforum.zoom.us/t/app-wont-read-the-config-from-config-ini/104385 "2024-02-22T11:03:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mihir.dayal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mihir.dayal/32/50006_2.png) [@mihir.dayal](https://devforum.zoom.us/u/mihir.dayal)\
**Post date:** [February 22, 2024, 11:03am UTC](https://devforum.zoom.us/t/app-wont-read-the-config-from-config-ini/104385/1 "2024-02-22T11:03:24Z")

</div>

Hi!

I am using the Headless BOT sample app from [here](https://github.com/zoom/meetingsdk-headless-linux-sample).  
I have downloaded zoom-meeting-sdk-linux\_x86\_64-5.17.0.1732 and tried all the steps that are mentioned in the readMe on Github multiple times, however I still cannot get it to work properly.

The problem is that the app isn’t reading anything from the config.ini file. I keep getting this error (posting the output from the cli as I get an error when I try to add an image in this post):

```auto
...
zoomsdk-build | Consolidate compiler generated dependencies of target zoomsdk
zoomsdk-build | [9%] Building CXX object CMakeFiles/zoomsdk.dir/src/main.cpp.o
zoomsdk-build | [18%] Building CXX object CMakeFiles/zoomsdk.dir/src/Zoom.cpp.o
zoomsdk-build | [27%] Building CXX object CMakeFiles/zoomsdk.dir/src/Config.cpp.o
zoomsdk-build | [36%] Linking CXX executable zoomsdk
zoomsdk-build | [100%] Built target zoomsdk
zoomsdk-build | ✅ configure
zoomsdk-build | ✅ initialize
zoomsdk-build | ❌ Client ID cannot be blank
zoomsdk-build | ❌ failed to authorize with status 7
zoomsdk-build exited with code 139

```

Sample of my config.ini file

```auto
client-id="Something"

client-secret="Something else"

join-url="https:///ZoomMeetingUrl"

display-name="Test Bot"

[RawAudio]
file="meeting-audio.pcm"

```

However, If I hardcode the values of the config in the Config.h file, then the app works.

I have re-checked all the steps and even downloaded an additional copy of the repository to make sure I didn’t do something wrong accidentally but unfortunately got the same results.

I am running this docker image on MacOS 14.2

Any help on this would really be appreciated! Thanks !

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [February 23, 2024, 7:07am UTC](https://devforum.zoom.us/t/app-wont-read-the-config-from-config-ini/104385/2 "2024-02-23T07:07:27Z")

</div>

@mihir.dayal , did you create or copy the config.ini into your container?

---

<div class="post-metadata">

**Author:** ![mihir.dayal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mihir.dayal/32/50006_2.png) [@mihir.dayal](https://devforum.zoom.us/u/mihir.dayal)\
**Post date:** [February 23, 2024, 7:36am UTC](https://devforum.zoom.us/t/app-wont-read-the-config-from-config-ini/104385/3 "2024-02-23T07:36:26Z")

</div>

Hi @chunsiong.zoom , thanks for the response!

I am using the default docker file provided in the repository. I just copied the sample.config.ini to a new file config.ini and added my credentials to all the respective fields in the file. After this, I run `docker compose up`  
Also, the config.ini file is at the same level as the sample.config.ini file.

Please let me know if I am missing something here.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [February 23, 2024, 7:48am UTC](https://devforum.zoom.us/t/app-wont-read-the-config-from-config-ini/104385/4 "2024-02-23T07:48:47Z")

</div>

@mihir.dayal ,

Do a quick test, copy config.ini into your src folder.

---

<div class="post-metadata">

**Author:** ![mihir.dayal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mihir.dayal/32/50006_2.png) [@mihir.dayal](https://devforum.zoom.us/u/mihir.dayal)\
**Post date:** [February 23, 2024, 8:26am UTC](https://devforum.zoom.us/t/app-wont-read-the-config-from-config-ini/104385/5 "2024-02-23T08:26:39Z")

</div>

@chunsiong.zoom, I tried this earlier too and I tried it again right now but still getting the same error message.

```auto
zoomsdk-build | ✅ configure
zoomsdk-build | ✅ initialize
zoomsdk-build | ❌ Client ID cannot be blank
zoomsdk-build | ❌ failed to authorize with status 7

```

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [February 23, 2024, 8:56am UTC](https://devforum.zoom.us/t/app-wont-read-the-config-from-config-ini/104385/6 "2024-02-23T08:56:36Z")

</div>

@mihir.dayal , can you build the container and run it in interactive mode, check within the shell if config.ini exist and is updated.

---

<div class="post-metadata">

**Author:** ![mihir.dayal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mihir.dayal/32/50006_2.png) [@mihir.dayal](https://devforum.zoom.us/u/mihir.dayal)\
**Post date:** [February 26, 2024, 10:49am UTC](https://devforum.zoom.us/t/app-wont-read-the-config-from-config-ini/104385/7 "2024-02-26T10:49:33Z")

</div>

Hi @chunsiong.zoom , thanks for providing me the debugging tips!

I tried a few things and finally could get the config file working by modifying the run() function inside the entry.sh file.

Originally it was

```auto
run() {
  exec ./"$BUILD"/zoomsdk;
}

```

I changed it to

```auto
run() {
  exec ./"$BUILD"/zoomsdk --config config.ini;
}

```

Thats it. Now it is working as expected!

Hope this also helps anyone else running into the same issues as well!
