# DwollaException

**URL:** <https://discuss.dwolla.com/t/dwollaexception/8295>\
**Category:** Authentication\
**Created:** [August 10, 2022, 5:29pm UTC](https://discuss.dwolla.com/t/dwollaexception/8295 "2022-08-10T17:29:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankit-Kumar](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@Ankit-Kumar](https://discuss.dwolla.com/u/Ankit-Kumar)\
**Post date:** [August 10, 2022, 5:29pm UTC](https://discuss.dwolla.com/t/dwollaexception/8295/1 "2022-08-10T17:29:43Z")

</div>

I am getting DwollaException while generating access token in android app. I have added “com.github.Dwolla:dwolla-v2-kotlin:0.6.0” dependencies to my project.

val dwolla = Dwolla(  
key = “example-client-key”,  
secret = “example-client secret”,  
environment = DwollaEnvironment.SANDBOX // defaults to PRODUCTION  
)

val response = dwolla.post(“[https://api-sandbox.dwolla.com/token](https://api-sandbox.dwolla.com/token)”, JsonBody(  
“grant\_type” to “client\_credentials”  
), Headers(“Authorization” to “Basic Base64(example-client-key:example-client-secret)”,  
“Content-Type” to “application/x-www-form-urlencoded”) )

NOTE:I have not entered my valid client-key and client-secret here.

I am getting DwollaException when dwolla.post() is executed. Please suggest.

---

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [August 24, 2022, 9:50pm UTC](https://discuss.dwolla.com/t/dwollaexception/8295/2 "2022-08-24T21:50:01Z")

</div>

Hi @Ankit-Kumar – Dwolla’s Kotlin SDK is intended for server-side use and should not be used by itself when developing client-side Android apps. Instead, this SDK should be installed on your web server with your Android app proxying any interaction with Dwolla through it.

---

<div class="post-metadata">

**Author:** ![Ankit-Kumar](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@Ankit-Kumar](https://discuss.dwolla.com/u/Ankit-Kumar)\
**Post date:** [September 15, 2022, 12:07am UTC](https://discuss.dwolla.com/t/dwollaexception/8295/3 "2022-09-15T00:07:23Z")

</div>

Hi @shreya - I realy appreciate your help and quick response.Thank you for clearing my understandings.I am also sorry for late response.

---

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [September 15, 2022, 2:35pm UTC](https://discuss.dwolla.com/t/dwollaexception/8295/4 "2022-09-15T14:35:47Z")

</div>

Hi @Ankit-Kumar – that’s not a problem! 🙂
