Closed nh2 closed 6 years ago
What call causes this issue? The assumption is that when you are posting you will ALWAYS have body content.
configuration = HetznerCloudClientConfiguration() \
.with_api_key("HETZNER_API_KEY") \
.with_api_version(1)
client = HetznerCloudClient(configuration)
all_servers_list = list(client.servers().get_all())
for server in all_servers_list:
server.power_on()
I have all server object functions with this problem.
Okay, my tests don't show this problem but I've merged the fix in anyway. A little caution never hurt nobody!
We shoud not send a body in that case. Until now, the code sent
json.dumps(None)
, which is the JSONnull
value.That triggered the error response "root must be an object".