ipfs / ipfs/ipfs-docs

Kubo RPC API - Pin ls response is not as described

Open
#2,181 1 comment 0 reactions 0 assignees View on GitHub
need/triage
Dominant language
Go
Stars
332
Forks
499
Avg merge
8d 14h
Merged PRs (30d)
2

Description

https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-pin-ls
says the response is:

```
{
"PinLsList": {
"Keys": {
"": {
"Name": "",
"Type": ""
}
}
},
"PinLsObject": {
"Cid": "",
"Name": "",
"Type": ""
}
}
```

But an actual response is:
```
{
"Keys" : {
"QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn" : {
"Type" : "recursive"
},
"bafybeibpimca4f75fxe7mcetxs3ajuwrrc3ss3np4pvhamqtj3icxsuppa" : {
"Type" : "recursive"
}
}
}
```

So, there is no "PinLsList" and "PinLsObject" root fields; it is directly "PinLsList.Keys".

Kubo version v0.38.1 desktop ; UI: c14b38a

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.