Our app has recently been getting occasional errors from the Dwolla SDK, caused by an internal NullPointerException during API response deserialization. The NPE then gets wrapped in a DwollaException as the cause attribute. The cause stack trace is fairly uninformative, and we don’t have the raw API response from Dwolla being deserialized. Here’s the stack trace:
- kotlin.KotlinNullPointerException
- Deserializer.kt:7: com.dwolla.util.Deserializer:deserialize
- DwollaClient.kt:307: com.dwolla.DwollaClient:handleResponse
- DwollaClient.kt:281: com.dwolla.DwollaClient:makeRequest
We are on the latest Dwolla Kotlin SDK, 0.7.1, and every exception occurs on making a POST /transfers API call. It has happened 4 times recently at approximately the following UTC times:
- 2023-11-18T09:35:56.325Z
- 2023-11-15T12:30:50.290Z
- 2023-11-15T12:18:42.402Z
- 2023-11-13T00:04:33.375Z
Could we get some guidance on how to address these SDK/API errors?