Open f-zappa opened 2 months ago
OK, had some time today. This effect only occurs if there is only one cert in the store. This for loop expects a list of dicts, but if only one cert exists in store this will be returned as a bare dict.
for _cert in self._config_reader().get("cert"):
Fixed it in #56 with this code (maybe there is a more elegant way, but it fixed my problem):
_certs = self._config_reader().get("cert")
if not isinstance(_certs, list):
_certs = [_certs]
for _cert in _certs:
[...]
Hi everyone, I receive an "Error Status: 200" for an ACME cert, although the cert itself is fine. Relevant lines in agent output (when nc'ing it) read like this:
Once an hour indeed the status turns to "Item not found in monitoring data", probably when the _certificate_parser is called. Same happens when running the agent from the command line using "--debug", and in this case we get a traceback:
I looked around the code but don't get why _cert happens to be a string. Maybe someone has an idea how to fix it ...
regards, Uli