contentful.java
contentful.java copied to clipboard
CDAClient does not show error message from Contentful
When querying Contentful with too many entries via URL, we receive an error message Error: URI Too Long with status code 414.
However, when using the CDAClient to do the same
val cdaAssets = cdaClient.fetch(CDAEntry::class.java)
.where("sys.id[in]", contentIds.joinToString(separator = ",") { it.value })
.all()
we simply get null as exception message.
It would be great to have the API Response message in the exception for easier debugging.