Make response parsing errors more descriptive.

Add a message while preserving the cause.
When failing to parse a JSON response, log what the raw text was.