contentful.java icon indicating copy to clipboard operation
contentful.java copied to clipboard

CDAClient does not show error message from Contentful

Open kevcodez opened this issue 6 years ago • 0 comments

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.

kevcodez avatar Sep 25 '19 09:09 kevcodez