# Failed to create record A/\<domain\> : list indices must be integers or slices, not str

**URL:** https://forum.yunohost.org/t/failed-to-create-record-a-domain-list-indices-must-be-integers-or-slices-not-str/23883
**Category:** Support
**Tags:** bug, english
**Created:** [March 1, 2023, 8:21am UTC](https://forum.yunohost.org/t/failed-to-create-record-a-domain-list-indices-must-be-integers-or-slices-not-str/23883 "2023-03-01T08:21:55Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![cichy1173](https://forum.yunohost.org/user_avatar/forum.yunohost.org/cichy1173/32/9993_2.png) [@cichy1173](https://forum.yunohost.org/u/cichy1173)
#### Post date: [March 1, 2023, 8:21am UTC](https://forum.yunohost.org/t/failed-to-create-record-a-domain-list-indices-must-be-integers-or-slices-not-str/23883/1 "2023-03-01T08:21:55Z")

</div>

### My YunoHost server

**Hardware:** Mini PC x86\_64  
**YunoHost version:** 11.11.11.2  
**I have access to my server :** Through SSH | through the webadmin |  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : no

### Description of my issue

Hi. I found the same issue like mine, but it was not solved. I use Gandi as domain provider, which is great because API is supported in Yunohost. But there is a problem with posting some records.

```plaintext
Failed to create record A/<domain>.eu: list indices must be integers or slices, not str
Failed to create record CA/<domain>.eu: list indices must be integers or slices, not str
Failed to create record MX/<domain>.eu: list indices must be integers or slices, not str
Failed to create record TXT/<domain>.eu: list indices must be integers or slices, not str

```

\*Where `<domain>` is my domain name.

It can be solved by posting this data manually on Gandi site. But I use script that is refreshing all records in every 5 minutes (It is helpful with dynamic ip). Without this records posted, I cannot access some of my apps.

It looks simple to solve, but it would be really helpful 🙂.

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [March 1, 2023, 9:03am UTC](https://forum.yunohost.org/t/failed-to-create-record-a-domain-list-indices-must-be-integers-or-slices-not-str/23883/2 "2023-03-01T09:03:56Z")

</div>

I’m in the rush but if you still know how to find the other similar issue you were talking about, there should be some discussion about adding some debugging info to pinpoint the issue

---

<div class="post-metadata">

### Author: ![cichy1173](https://forum.yunohost.org/user_avatar/forum.yunohost.org/cichy1173/32/9993_2.png) [@cichy1173](https://forum.yunohost.org/u/cichy1173)
#### Post date: [March 1, 2023, 9:09am UTC](https://forum.yunohost.org/t/failed-to-create-record-a-domain-list-indices-must-be-integers-or-slices-not-str/23883/3 "2023-03-01T09:09:15Z")

</div>

> [@Automatic DNS fails to push some values](https://forum.yunohost.org/t/automatic-dns-fails-to-push-some-values/22428):
>
> Continuing the discussion from [YunoHost 4.3 testing](https://forum.yunohost.org/t/yunohost-4-3-testing/17222/7): I am having the same error with all of my domains.

This is the similar issue.

> there should be some discussion about adding some debugging info to pinpoint the issue

Can you tell what do you mean?

---

<div class="post-metadata">

### Author: ![cichy1173](https://forum.yunohost.org/user_avatar/forum.yunohost.org/cichy1173/32/9993_2.png) [@cichy1173](https://forum.yunohost.org/u/cichy1173)
#### Post date: [March 18, 2023, 11:21pm UTC](https://forum.yunohost.org/t/failed-to-create-record-a-domain-list-indices-must-be-integers-or-slices-not-str/23883/5 "2023-03-18T23:21:41Z")

</div>

Bump

---

<div class="post-metadata">

### Author: ![Kayou](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kayou/32/1972_2.png) [@Kayou](https://forum.yunohost.org/u/Kayou)
#### Post date: [April 4, 2023, 9:09am UTC](https://forum.yunohost.org/t/failed-to-create-record-a-domain-list-indices-must-be-integers-or-slices-not-str/23883/6 "2023-04-04T09:09:15Z")

</div>

I had the same problem. After applying the same hack as for “godaddy”, it works perfectly

> <https://github.com/YunoHost/yunohost/blob/85a4b78e492306948a9791a020ca0240001be179/src/dns.py#L953-L954>

PR: [Fix autodns for gandi root domain by kay0u · Pull Request #1634 · YunoHost/yunohost · GitHub](https://github.com/YunoHost/yunohost/pull/1634)

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [May 4, 2023, 9:09am UTC](https://forum.yunohost.org/t/failed-to-create-record-a-domain-list-indices-must-be-integers-or-slices-not-str/23883/7 "2023-05-04T09:09:41Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
