Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ovh version 1.1.0 to handle API request #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Shimrockx
Copy link

This pull request address the issue #19.

Fixing the following traceback :

Traceback (most recent call last):
  File "/etc/dehydrated/hooks/ovh/hook.py", line 199, in <module>
    main(sys.argv[1:])
  File "/etc/dehydrated/hooks/ovh/hook.py", line 195, in main
    ops[action](args)
  File "/etc/dehydrated/hooks/ovh/hook.py", line 109, in create_txt_record
    refresh_ovh_dns_zone(domain)
  File "/etc/dehydrated/hooks/ovh/hook.py", line 89, in refresh_ovh_dns_zone
    client.post('/domain/zone/{0}/refresh'.format(domain))
  File "/usr/local/lib/python3.9/dist-packages/ovh/client.py", line 320, in post
    return self.call('POST', _target, kwargs, _need_auth)
  File "/usr/local/lib/python3.9/dist-packages/ovh/client.py", line 401, 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)'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant