@guice wrote:
Trying to enable Cloudflare, but getting this error when attempting to update records.
list index out of range Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 134, in handle_call_service connection.context(msg), File "/usr/src/homeassistant/homeassistant/core.py", line 1226, in async_call await asyncio.shield(self._execute_service(handler, service_call)) File "/usr/src/homeassistant/homeassistant/core.py", line 1253, in _execute_service await self._hass.async_add_executor_job(handler.func, service_call) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/cloudflare/__init__.py", line 50, in update_records_service _update_cloudflare(cfupdate, email, key, zone, records) File "/usr/src/homeassistant/homeassistant/components/cloudflare/__init__.py", line 67, in _update_cloudflare update_records = cfupdate.get_recordInfo(headers, zoneid, zone, records) File "/usr/local/lib/python3.7/site-packages/pycfdns/__init__.py", line 56, in get_recordInfo recordInfoResponse = recordInfoRequest.json()['result'][0] IndexError: list index out of range
My configuration is:
cloudflare: email: !secret email api_key: !secret cloudflare_apikey zone: myhostname.com records: - sub1 - sub2 - route2
(redacted values, obviously)
The API key is correct.
Posts: 2
Participants: 2