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
296 stars 81 forks source link

"Invalid signature" on write operations #103

Closed jherazob closed 3 years ago

jherazob commented 3 years ago

This might be an internal change on OVH's side, but a script that modified entries on a domain suddenly stopped working, giving that exception

ovh.exceptions.BadParametersError: Invalid signature

It authenticates, reads all the info well, but when it gets to the point where it tries to PUT on /domain/zone/{zoneName}/record/{id} it gets this error even though it worked just yesterday and everything is correct. Even more, the exact same command works on the OVH API web console. Thought it was the credentials (that again were working just fine yesterday), so made new ones with full write access, same result.

If this is something on OVH side the module will be able to do nothing about it, but might be worth checking.

jherazob commented 3 years ago

It was user error. The script had been modified by somebody else, and it was sending the API a list instead of a number. The API error message was absolutely unhelpful though, gave no clue that it was an error on the API input and instead pointed you in the direction of auth. I'm closing this ticket.