Open erazemk opened 3 years ago
@erazemk I was seeing this error as well and after doing a little bit of debugging, I found out what was causing it.
Basically, the api_url
does not support the ENVIRONMENT VARIABLE
method for retrieval as the token
does. So it did not work when my configuration was as follows:
...
cachet:
api_url:
- type: ENVIRONMENT_VARIABLE
value: CACHET_URL
token:
- type: TOKEN
value: my_token
...
I had to instead hard-code the URL into the config.yml
like this:
...
cachet:
api_url: http://status.cachethq.io/api/v1
token:
- type: TOKEN
value: my_token
...
I know that the the Docker version does say to do it like the former but perhaps that changed in some version of cachet-url-monitor
.
I tried running the dockerized version of cachet-url-monitor, but I get the following error when running from master:
I'm not very familiar with Python, so I don't know how to fix it myself, but it seems the problem is that
url
inclient.py:l13
is treated as a list instead of a string.