add-to-web3 icon indicating copy to clipboard operation
add-to-web3 copied to clipboard

Delegation proof error: "ENAMETOOLONG: name too long, open"

Open alexjorgef opened this issue 1 year ago • 0 comments

When creating a delegation proof for use (https://github.com/alexjorgef/website/blob/main/.github/workflows/build.yml#L187-L194) only a specific pattern of capabilities works. The proof seems to be too long and GitHub returns the following error:

> Run web3-storage/add-to-web3@v3
> Run npm install -g @web3-storage/w3cli

added 365 packages in 9s

93 packages are looking for funding
  run `npm fund` for details
> Run w3 space add ***
Error: failed to read proof: ENAMETOOLONG: name too long, open '***'
Error: Process completed with exit code 1.

An example of the correct command or a documentation section about this issue would be cool to have. I think I use the following capabilities on action and works: w3 delegation create did:key:<THE_KEY> -c 'upload/add' -c 'space/*' --base64

Does any other combination result in ENAMETOOLONG error?

<command...> -c 'upload/add' -c 'space/*'
<command...> -c 'store/add' -c 'upload/*' -c 'space/*'
<command...> -c 'store/add' -c 'upload/add' -c 'space/*/add'
<command...> -c 'store/add' -c 'upload/add' -c 'space/blob/add' -c 'space/index/add'
<command...> -c 'store/add' -c 'space/blob/add' -c 'space/index/add'

alexjorgef avatar Aug 01 '24 17:08 alexjorgef