wrap response data parsing in try-catch