Improve logging when getting gateway client receives unparsable response.
Log line every time application/json writes en error response. Include the
debug stamp inside to make debugging easier.