This line throws an exception because the response bytes are not decoded prior to deserialization. This basically prevents the autoscaler from launching.
This line is also problematic for a related reason: json.loads can't deserialize a non-string object