(async () => {
const lease = client.lease(3600);
let leasedKey = await lease.put ('/leased-key').value ('value');
let leasedGet = await client.get ('/leased-key').exec ();
console.log ('leasedKey:', leasedKey);
console.log ('leasedGet:', leasedGet);
const leaseId = leasedGet.kvs[0].lease;
console.log ('leasettl:', await client.leaseClient.leaseTimeToLive ({'ID': leaseId}))
}) ();
There is a key attached to the lease, but the ILeaseTimeToLiveResponse returns an empty array of keys.