ovh / python-ovh

Thin wrapper around OVH's APIs. Handles all the hard work including credential creation and requests signing.
https://pypi.org/project/ovh/
Other
278 stars 76 forks source link

PUT/POST without Body on /cloud/project/{service_name}/ai/job/{job_id}/kill #104

Closed bertrand-benoit closed 2 years ago

bertrand-benoit commented 2 years ago

Issue is very similar to https://github.com/ovh/python-ovh/issues/95 with the /cloud/project/{service_name}/ai/job/{job_id}/kill entrypoint.

Unfortunately the trip to call directly client.call('PUT', '/cloud/project/{serviceName}/user/{userID}/s3Credentials') is not enough, because the OVH API returns 204 (good), and no content (good), but this OVH package attempts to convert this 'no content' to json, which is thus failing:

ovh/client.py", line 423, in call
    raise InvalidResponse("Failed to decode API response", error)
ovh.exceptions.InvalidResponse: ('Failed to decode API response', JSONDecodeError('Expecting value: line 1 column 1 (char 0)'))
rbeuque74 commented 2 years ago

Hello, Sorry for the delay, This issue will be fixed in v1.0.0.

rbeuque74 commented 2 years ago

Fixed with #85. Released in https://github.com/ovh/python-ovh/releases/tag/v1.0.0