Glances won't connect to influxdb (both in hass.io)

Running HA in Hass.io on a esx VM.

I’ve followed Franck’s youtube guide on installing Glances and Influxdb. I can start influx and see data from HA coming in. I’ve crated a new db and user for glances - but can’t get data to write to it (I do see data in Glances). I get this error in the log:
Traceback (most recent call last):
File “/usr/bin/glances”, line 11, in
load_entry_point(‘Glances==3.1.1’, ‘console_scripts’, ‘glances’)()
File “/usr/lib/python3.7/site-packages/glances/init.py”, line 140, in main
start(config=config, args=args)
File “/usr/lib/python3.7/site-packages/glances/init.py”, line 106, in start
mode = GlancesMode(config=config, args=args)
File “/usr/lib/python3.7/site-packages/glances/standalone.py”, line 49, in init
self.stats = GlancesStats(config=config, args=args)
File “/usr/lib/python3.7/site-packages/glances/stats.py”, line 47, in init
self.load_modules(self.args)
File “/usr/lib/python3.7/site-packages/glances/stats.py”, line 101, in load_modules
self.load_exports(args=args)
File “/usr/lib/python3.7/site-packages/glances/stats.py”, line 179, in load_exports
config=self.config)
File “/usr/lib/python3.7/site-packages/glances/exports/glances_influxdb.py”, line 60, in init
self.client = self.init()
File “/usr/lib/python3.7/site-packages/glances/exports/glances_influxdb.py”, line 70, in init
ssl=(self.protocol.lower() == ‘https’),
AttributeError: ‘NoneType’ object has no attribute ‘lower’

I’ve had a look at the glances code - line 70 is attempting to connect to the database on https. Don’t think I need to enable ssl inside influxdb?

I’ve uninstalled glances and installed from scratch - still no dice.

My config for glances is:

{
  "log_level": "debug",
  "process_info": false,
  "refresh_time": 10,
  "ssl": true,
  "certfile": "certificate.pem",
  "keyfile": "private.pem",
  "influxdb": {
    "enabled": true,
    "host": "a0d7b954-influxdb", 
// which is the default and apparently why it should be set to - have also tried 127.0.0.1 and the LAN IP of HA \\
    "port": 8086,
    "username": "glance_usr",
    "password": "test",
    "database": "glances_data",
    "prefix": "localhost",
    "interval": 10
  }
}

Appears this is known issue with Glances in Hass : https://github.com/hassio-addons/addon-glances/issues/25