openstorage icon indicating copy to clipboard operation
openstorage copied to clipboard

GetToken returns weird error when no cluster pairs are setup

Open lpabon opened this issue 7 years ago • 1 comments

Is this a BUG REPORT or FEATURE REQUEST?: BUG

What happened: While

What you expected to happen: Sending the SDK command:

$ curl http://localhost:9110/v1/clusterpairs/token
{"error":"Cannot Get cluster information for token : Key not found","code":13}

"key not found" is a confusing error message

How to reproduce it (as minimally and precisely as possible):

$ make launch-sdk
$ curl http://localhost:9110/v1/clusterpairs/token
{"error":"Cannot Get cluster information for token : Key not found","code":13}

lpabon avatar Nov 02 '18 18:11 lpabon

Not sure what that SDK call is trying to do. Looks like it is fetching a clusterpair with id=token

disrani-px avatar Nov 02 '18 20:11 disrani-px