Bonjour Marmottin,
Je viens de tester ton script et j'obtiens ce mail :
Cher utilisateur,
Le planificateur de tâches à terminé une tâche planifiée.
Tâche : Dyndns Gandi V5
Heure de début : Mon, 21 Oct 2019 21:05:02 GMT
Heure d’arrêt : Mon, 21 Oct 2019 21:07:05 GMT
État actuel : 1 (Interrompu)
Sortie standard/erreur :
[2019-10-21 21:07:02,929][__main__][INFO] Gandi record update started.
[2019-10-21 21:07:03,663][__main__][INFO] Record A for @.toto.fr is up to date.
Traceback (most recent call last):
File "/var/services/dyndns/gandip.py", line 117, in <module>
main()
File "/var/services/dyndns/gandip.py", line 113, in main
api.update_records(args.zone, args.record, current_ipv6, ttl=args.ttl, rtype="AAAA")
File "/var/services/dyndns/gandip.py", line 70, in update_records
with urllib.request.urlopen(request) as response:
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/urllib/request.py", line 162, in urlopen
return opener.open(url, data, timeout)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/urllib/request.py", line 471, in open
response = meth(req, response)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/urllib/request.py", line 581, in http_response
'http', request, response, code, msg, hdrs)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/urllib/request.py", line 509, in error
return self._call_chain(*args)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/urllib/request.py", line 443, in _call_chain
result = func(*args)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/urllib/request.py", line 589, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request
Comment dois je l’interpréter ? car je vois une erreur sur la fin.
Merci de ton aide.