storacha-network / w3cli

💾 w3 command line interface
Other
30 stars 7 forks source link

cannot delegate capability index/* error #199

Closed tomohiro-n closed 1 month ago

tomohiro-n commented 1 month ago

With @web3-storage/w3cli@7.8.1, the below command failed. I've downgraded to 7.6.2 and it worked.

$ w3 delegation create <replace_this_by_did> --base64
file:///Users/tomohiro/.config/yarn/global/node_modules/@web3-storage/access/dist/src/agent.js:379
                throw new Error(`cannot delegate capability ${cap.can} with ${cap.with}`);
                      ^

Error: cannot delegate capability index/* with <replace_this_by_did>
    at Agent.delegate (file:///Users/tomohiro/.config/yarn/global/node_modules/@web3-storage/access/dist/src/agent.js:379:23)
    at Client.createDelegation (file:///Users/tomohiro/.config/yarn/global/node_modules/@web3-storage/w3up-client/dist/src/client.js:262:52)
    at createDelegation (file:///Users/tomohiro/.config/yarn/global/node_modules/@web3-storage/w3cli/index.js:402:35)
tomohiro-n commented 1 month ago

This error is gone after I reset and did everything with v7.8.1. Closing for now.