                 }
             }
             
-            successBlock(result[Keys.ShortBio] as? String, socialAccounts, films)
-        }, errorBlock: nil)
+            completion(result[Keys.ShortBio] as? String, socialAccounts, films)
+        }) { (error) in
+            print("Error fetching talent details for id \(talentId): \(error)")
+            completion(nil, nil, [])
+        }
     }
     
 }

                    }
                }
                
                successBlock(talentImages)
            } else {
                successBlock(nil)
            }
        }, errorBlock: nil)
    }
    
    public func getTalentDetails(_ talentId: String, successBlock: @escaping (_ biography: String?, _ socialAccounts: [TalentSocialAccount]?, _ films: [TalentFilm]) -> Void) {
        _ = getJSONWithPath(Endpoints.GetTalentDetails, parameters: ["id": talentId], successBlock: { (result) in
            var socialAccounts = [TalentSocialAccount]()
            if let socialAccountInfoList = result[Keys.SocialAccounts] as? NSArray {

                        i += 1
                    }
                    
                    completion(talents)
                }
            }) { (error) in
                print("Error fetching credits for id \(apiId): \(error)")
                completion(nil)
            }
        } else {
            completion(nil)
        }
    }
    
    public func getTalentImages(_ talentId: String, completion: @escaping (_ talentImages: [TalentImage]?) -> Void) {
        _ = getJSONWithPath(Endpoints.GetTalentImages, parameters: ["id": talentId], successBlock: { (result) -> Void in
            if let results = result["result"] as? NSArray , results.count > 0 {
                var talentImages = [TalentImage]()
