# Error while using find method of webos.service.db

**URL:** <https://forum.webosose.org/t/error-while-using-find-method-of-webos-service-db/1528>\
**Category:** Univ Colllab - Christ Univ\
**Created:** [August 2, 2021, 7:30am UTC](https://forum.webosose.org/t/error-while-using-find-method-of-webos-service-db/1528 "2021-08-02T07:30:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajesh](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/ajesh/32/517_2.png) [@ajesh](https://forum.webosose.org/u/ajesh)\
**Post date:** [August 2, 2021, 7:30am UTC](https://forum.webosose.org/t/error-while-using-find-method-of-webos-service-db/1528/1 "2021-08-02T07:30:26Z")

</div>

I want to use the find method of webos.service.db component.  
when i try to use from the webapp,

 ![WhatsApp Image 2021-07-30 at 10.26.01 AM](https://canada1.discourse-cdn.com/flex031/uploads/developer1/original/1X/12bc66e620f8e2efd62656b95e3364291b252a87.jpeg),  
the follwoing error comes,  
 ![WhatsApp Image 2021-07-30 at 10.44.51 AM](https://canada1.discourse-cdn.com/flex031/uploads/developer1/original/1X/1dcca873b1a9ec045f3175ce244104b915955574.jpeg)  
may i know the reason? and how to rectify it?

---

<div class="post-metadata">

**Author:** ![Bhaskar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/bhaskar/32/560_2.png) [@Bhaskar](https://forum.webosose.org/u/Bhaskar)\
**Post date:** [August 2, 2021, 8:58am UTC](https://forum.webosose.org/t/error-while-using-find-method-of-webos-service-db/1528/2 "2021-08-02T08:58:33Z")

</div>

Make sure your app has proper "requiredpermissions" such as "database.operation" group in appinfo.json file.

---

<div class="post-metadata">

**Author:** ![ajesh](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/ajesh/32/517_2.png) [@ajesh](https://forum.webosose.org/u/ajesh)\
**Post date:** [August 2, 2021, 9:07am UTC](https://forum.webosose.org/t/error-while-using-find-method-of-webos-service-db/1528/3 "2021-08-02T09:07:03Z")

</div>

Hello, thank you for the help. If you don't mind, could you also provide any document that we can read to understand about it more?

---

<div class="post-metadata">

**Author:** ![dhanesh](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@dhanesh](https://forum.webosose.org/u/dhanesh)\
**Post date:** [August 2, 2021, 9:29am UTC](https://forum.webosose.org/t/error-while-using-find-method-of-webos-service-db/1528/4 "2021-08-02T09:29:09Z")

</div>

You can refer [Developing JS Services | webOS Open Source Edition](https://www.webosose.org/docs/iot/tutorial/js-services/developing-js-services-iot/)  
Refer section: Client Permission File  
You have to create and update the file: `<js service name>.perm.json.in`  
with the following for example:  
"database", "database.internal", "database.operation",

---

<div class="post-metadata">

**Author:** ![ajesh](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/ajesh/32/517_2.png) [@ajesh](https://forum.webosose.org/u/ajesh)\
**Post date:** [August 2, 2021, 2:32pm UTC](https://forum.webosose.org/t/error-while-using-find-method-of-webos-service-db/1528/5 "2021-08-02T14:32:20Z")

</div>

![Screenshot from 2021-08-02 20-00-56](https://canada1.discourse-cdn.com/flex031/uploads/developer1/original/1X/a5802c8c4ded08ba5fb19cbe4daf72e3822eff72.png)  
I have added the following permissions, and the error i was getting earlier has not come, but,  
 ![Screenshot from 2021-08-02 19-55-17](https://canada1.discourse-cdn.com/flex031/uploads/developer1/original/1X/da11ad6b222d567d1eab4c7c85b69142026c55f4.png)  
this new error has come, can someone give a solution to this?

---

<div class="post-metadata">

**Author:** ![Bhaskar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/bhaskar/32/560_2.png) [@Bhaskar](https://forum.webosose.org/u/Bhaskar)\
**Post date:** [August 2, 2021, 6:31pm UTC](https://forum.webosose.org/t/error-while-using-find-method-of-webos-service-db/1528/6 "2021-08-02T18:31:49Z")

</div>

DB access permission denied.  
Make sure your application has permission to access the kind.  
you can set owner for the db during putkind.

---

<div class="post-metadata">

**Author:** ![ChangyongAhn](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/changyongahn/32/805_2.png) [@ChangyongAhn](https://forum.webosose.org/u/ChangyongAhn)\
**Post date:** [March 21, 2023, 1:30pm UTC](https://forum.webosose.org/t/error-while-using-find-method-of-webos-service-db/1528/8 "2023-03-21T13:30:18Z")

</div>

Are you developing an app that runs on webOS?  
This topic is about giving permissions to developing apps.  
If you need, edit appinfo.json .  
And you can check what Permissions needed from API documents.  
ACG means Access Control Groups.
