ILeaseTimeToLiveResponse returns an empty array of keys
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 546
- Forks
- 76
- Avg merge
- 22h 46m
- Merged PRs (30d)
- 13
Description
(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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the provided JavaScript snippet and tracing the leaseClient.leaseTimeToLive entry point. Verify the response for a lease with an attached key, and consider the issue done when ILeaseTimeToLiveResponse includes that key in its keys array.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100