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

ContentDecodingError POST /cloud/project/{service_name}/kube #90

Closed treussart closed 2 years ago

treussart commented 3 years ago

Hi I have an error when I want to create a new instance of K8s managed by OVH :

ovh.exceptions.HTTPError: ('Low HTTP request failed error', ContentDecodingError(DecodeError('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect header check'))))

I am using Python 3.9 and python-ovh 0.5.0 :

lib/python3.9/site-packages/ovh/client.py", line 415, in call
    raise HTTPError("Low HTTP request failed error", error)

The endpoint API : POST /cloud/project/{service_name}/kube Body : {'name': 'Test', 'region': 'SBG5', 'version': '1.18', 'nodepool': {'antiAffinity': True, 'desiredNodes': 3, 'flavorName': 'b2-15', 'maxNodes': 10, 'minNodes': 3, 'monthlyBilled': False, 'name': 'node-pool-test-1'}}

rbeuque74 commented 2 years ago

Hello, This bug has been fixed in v0.6.0.