BadParametersError: invalid signature when using OVH Python wrapper

I use the OVH API with the python shell:

https://pypi.python.org/pypi/ovh

When trying to execute this code:

import ovh

client = ovh.Client()

# Print nice welcome message
print "Welcome", client.get('/me')['firstname']

I get this error:

Traceback (most recent call last):
  File "index.py", line 6, in <module>
    print "Welcome", client.get('/me')['firstname']
  File "/home/rubinhozzz/.local/lib/python2.7/site-packages/ovh/client.py", line 290, in get
    return self.call('GET', _target, None, _need_auth)
  File "/home/rubinhozzz/.local/lib/python2.7/site-packages/ovh/client.py", line 419, in call
    raise BadParametersError(json_result.get('message'))
ovh.exceptions.BadParametersError: Invalid signature

My information is stored in the ovh.conf file, as the documentation suggests.

[default]
; general configuration: default endpoint
endpoint=ovh-eu

[ovh-eu]
application_key=XXXlVy5SE7dY7Gc5
application_secret=XXXdTEBKHweS5F0P0tb0lfOa8GoQPy4l
consumer_key=pscg79fXXX8ESMIXXX7dR9ckpDR7Pful

It seems that I can connect, but when I try to use services, for example, "/ me", an error occurs!

+4
source share
1 answer

It is difficult to reproduce the problem because it requires an application key and it seems to be provided only to existing OVH clients. I did not even see the link to the account registration page on my site.

() /ovh/client.py, , , script. :

  • application_secret
  • consumer_key
  • URL
  • ( )

, - OVH Python, . , ( ) .

. OVH " ". , .

, API , , , - .

+2

All Articles