Better invalid api response logging