azavea/franklin

400 requests for transactions are very unhelpful

jisantuc opened this issue · 1 comments

Describe the bug
When you post an item, if Franklin thinks there's something wrong with it, it doesn't tell you a lot.

Expected behavior
We should give the endpoints the same treatment that the importer got in terms of making error message at least tell you what field and what the expectation was, where possible.

Additional context
https://gitter.im/franklin-stac/community?at=5f6e4b10efefe620f24bbfbe

Something we can use to help with this is the transformation capabilities provided by tapir -- https://tapir.softwaremill.com/en/latest/server/errors.html#exception-handling

We'll specifically want to handle circe's error modes I think, or at least start there and fall back to debugging for what kinds of errors we actually get if it turns out that's wrong