alibaba/footmark

TypeError: the JSON object must be str, not 'bytes' in get_status_new

Closed this issue · 1 comments

my code:
ecs = ecs_connect(module)
for inst in ecs.describe_instances(instance_ids=resource):
inst.add_tags(tags)
issue: this tags should added success,but will raise display error
TypeError: the JSON object must be str, not 'bytes' in get_status_new
mabe:
body = json.loads(body, encoding='UTF-8') to
body = json.loads(body.decode('utf-8')) in connection.get_status_new 423 line

update!
error in python3.5
done in python3.6.10