bestlibre / hassio-addons

173 stars 109 forks source link

Caddy: not a valid value for dictionary value @ data['options'] #49

Closed fbartels closed 5 years ago

fbartels commented 6 years ago

Hi, I am trying to configure your caddy add-on in hassio, but I always get below error:

not a valid value for dictionary value @ data['options']. Got {'homeassistant': 'homeassistant.domain.tld', 'vhosts': [], 'raw_config': [], 'email': None}

This even happens when I reset the config back to default as seen above. Is this a backwards incompatible change in hassio 0.63.2?

Caddy add-on: v0.10.10-2 Hassio: 0.63.2

bestlibre commented 6 years ago

You need to specify an email. Something like

{"homeassistant": "homeassistant.domain.tld", "vhosts": [], "raw_config": [], "email": "email@email.tld"}
fbartels commented 6 years ago

Ah, indeed. When setting an email there it works. Maybe it could help to include an email in the example config. Since it was set to null there I thought I could just take this value for my configuration as well.

bestlibre commented 6 years ago

I prefer to add a warning in the documentation. There is a risk that the default value could be use (there is no email validation in the letsencrypt certificate creation).

KenwoodFox commented 6 years ago

This is still not working for me? Im not sure what im missing, Ive installed the addon on a fresh install, where do i add an email?

bestlibre commented 6 years ago

You need to have an email option in your configuration. See the example above. You can also send me your configuration (edited to remove personal data) if it doesn't work.