qk4l / zabbix-cachet

Python script which sync Zabbix IT Services with Cachet
MIT License
80 stars 32 forks source link

(MainThread) list indices must be integers or slices, not str #51

Open thyspir opened 4 years ago

thyspir commented 4 years ago

I got error "(MainThread) list indices must be integers or slices, not str" when use ./zabbix-cachet.py .

root@cachetindo:/var/www/html/integrator/zabbix-cachet# ./zabbix-cachet.py 
2019-08-01 07:40:10 WIB INFO: (MainThread) Zabbix Cachet v.1.3.6 started
2019-08-01 07:40:10 WIB INFO: (MainThread) JSON-RPC Server Endpoint: https://zabbix.wowrack.com/zabbix/api_jsonrpc.php
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:794: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
  InsecureRequestWarning)
2019-08-01 07:40:11 WIB INFO: (MainThread) Zabbix ver: 3.2.11. Cachet ver: 2.3.14-dev
2019-08-01 07:40:12 WIB ERROR: (MainThread) list indices must be integers or slices, not str

I have cloned the script twice and still get same error. Could you let me know how to fix this error? Thank you

sysmso commented 3 years ago

same here.