Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

dns update command reports "Remote API service is unreachable" #285

Open
Ronmi opened this issue Apr 28, 2019 · 1 comment
Open

dns update command reports "Remote API service is unreachable" #285

Ronmi opened this issue Apr 28, 2019 · 1 comment

Comments

@Ronmi
Copy link

Ronmi commented Apr 28, 2019

Failed to run gandi dns update, which shows An error occured during call: Remote API service is unreachable when calling domain record api

Here's part of the log

[DEBUG] calling url: GET https://dns.api.gandi.net/api/v5/domains/gg-in.in
[DEBUG] with params: {'headers': {'X-Api-Key': '**********'}}
[DUMP] responded: {'zone_uuid': '5fb3e900-472b-11e9-ae02-00163e4e76d5', 'zone_records_href': 'https://dns.api.gandi.net/api/v5/zones/5fb3e900-472b-11e9-ae02-00163e4e76d5/records', 'fqdn': 'gg-in.in', 'zone_href': 'https://dns.api.gandi.net/api/v5/zones/5fb3e900-472b-11e9-ae02-00163e4e76d5', 'domain_href': 'https://dns.api.gandi.net/api/v5/domains/gg-in.in', 'domain_keys_href': 'https://dns.api.gandi.net/api/v5/domains/gg-in.in/keys', 'domain_records_href': 'https://dns.api.gandi.net/api/v5/domains/gg-in.in/records'}
[DEBUG] calling url: PUT https://dns.api.gandi.net/api/v5/domains/gg-in.in/records
[DEBUG] with params: {'data': b'@ 10800 IN SOA ns1.gandi.net. hostmaster.gandi.net. 1556293726 10800 3600 604800 10800\n*.home 3600 IN CNAME home.gg-in.in.\n@ 3600 IN A 45.79.84.159\n@ 3600 IN TXT "v=spf1" "ip4:45.79.84.159" "~all"\n_imap._tcp.gg-in.in 3600 IN SRV 0 0 993 mail.gg-in.in.\n_imaps._tcp.gg-in.in 3600 IN SRV 0 0 993 mail.gg-in.in.\n_submission._tcp.gg-in.in 3600 IN SRV 0 0 587 mail.gg-in.in.\nhome 3600 IN A 114.35.100.230\nimap 3600 IN CNAME mail.gg-in.in.\nmail 3600 IN A 45.79.84.159\nsmtp 3600 IN CNAME mail.gg-in.in.\ntest 60 IN CNAME home.gg-in.in.', 'headers': {'X-Api-Key': '******', 'Content-Type': 'text/plain'}}
An error occured during call: Remote API service is unreachable
  • I use latest cli client installed in brand new virtualenv with python 3.5.3
  • gandi -vvvv dns update --file test.dns gg-in.in
  • Checked http://status.gandi.net/ and it says all services are up and running
@srgvg
Copy link

srgvg commented Dec 4, 2019

Adding this patch, I managed to get details on what went wrong:
srgvg@6c8efe9
In my case, I wanted to add a (second) TXT record on a domain, and the API returned {"code": 409, "message": "This record already exists", "object": "HTTPConflict", "cause": "Duplicate Entry"} which must be some bug, as it's perfectly possible to have multiple, different TXT records (I ended up adding it through the web interface.)

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

No branches or pull requests

2 participants