diff --git a/monkey/infection_monkey/master/control_channel.py b/monkey/infection_monkey/master/control_channel.py index cdf660842..b88cd196a 100644 --- a/monkey/infection_monkey/master/control_channel.py +++ b/monkey/infection_monkey/master/control_channel.py @@ -84,7 +84,9 @@ class ControlChannel(IControlChannel): ) response.raise_for_status() - return [Credentials.from_mapping(credentials) for credentials in response.json] + return [ + Credentials.from_mapping(credentials) for credentials in json.loads(response.text) + ] except ( requests.exceptions.JSONDecodeError, requests.exceptions.ConnectionError,