Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access API cannot get space/info #243

Closed
alanshaw opened this issue Dec 2, 2022 · 1 comment · Fixed by #255
Closed

Access API cannot get space/info #243

alanshaw opened this issue Dec 2, 2022 · 1 comment · Fixed by #255
Assignees
Milestone

Comments

@alanshaw
Copy link
Member

alanshaw commented Dec 2, 2022

invocation verification failed {
  name: 'Unauthorized',
  cause: {
    name: 'InvalidClaim',
    error: true,
    stack: 'InvalidClaim: Claimed capability {"can":"space/info","with":"did:key:z6MkvKqE5ft62Uxqts9pmpWEZYqybgkLUMbKt1LgSkK1aNQz"} is invalid\n' +
      "  - Capability can not be (self) issued by 'did:key:z6MkhcbEpJpEvNVDd3n5RurquVdqs5dPU16JDU5VZTDtFgnn'\n" +
      '  - Delegated capability not found\n' +
      '  - Encountered unknown capabilities\n' +
      '    - {"nb":{"link":{"code":514,"version":1,"hash":{"0":18,"1":32,"2":26,"3":58,"4":168,"5":146,"6":239,"7":237,"8":138,"9":216,"10":183,"11":37,"12":84,"13":117,"14":196,"15":48,"16":169,"17":219,"18":238,"19":43,"20":58,"21":6,"22":80,"23":147,"24":195,"25":200,"26":28,"27":71,"28":17,"29":104,"30":151,"31":80,"32":130,"33":75}},"size":47243},"can":"store/add","with":"did:key:z6MkvKqE5ft62Uxqts9pmpWEZYqybgkLUMbKt1LgSkK1aNQz"}\n' +
      '    at Fh (d1-beta-facade.entry.js:7237:10)\n' +
      '    at async Mh (d1-beta-facade.entry.js:7202:13)\n' +
      '    at async Object.info (d1-beta-facade.entry.js:8206:11)\n' +
      '    at async dx (d1-beta-facade.entry.js:8148:12)\n' +
      '    at async lx (d1-beta-facade.entry.js:8136:12)\n' +
      '    at async fx (d1-beta-facade.entry.js:8130:42)\n' +
      '    at async fg (d1-beta-facade.entry.js:9039:11)\n' +
      '    at async Bo.fetch (d1-beta-facade.entry.js:3685:17)\n' +
      '    at async Object.fetch (d1-beta-facade.entry.js:11153:13)',
    message: 'Claimed capability {"can":"space/info","with":"did:key:z6MkvKqE5ft62Uxqts9pmpWEZYqybgkLUMbKt1LgSkK1aNQz"} is invalid\n' +
      "  - Capability can not be (self) issued by 'did:key:z6MkhcbEpJpEvNVDd3n5RurquVdqs5dPU16JDU5VZTDtFgnn'\n" +
      '  - Delegated capability not found\n' +
      '  - Encountered unknown capabilities\n' +
      '    - {"nb":{"link":{"code":514,"version":1,"hash":{"0":18,"1":32,"2":26,"3":58,"4":168,"5":146,"6":239,"7":237,"8":138,"9":216,"10":183,"11":37,"12":84,"13":117,"14":196,"15":48,"16":169,"17":219,"18":238,"19":43,"20":58,"21":6,"22":80,"23":147,"24":195,"25":200,"26":28,"27":71,"28":17,"29":104,"30":151,"31":80,"32":130,"33":75}},"size":47243},"can":"store/add","with":"did:key:z6MkvKqE5ft62Uxqts9pmpWEZYqybgkLUMbKt1LgSkK1aNQz"}'
  },
  error: true,
  stack: 'Unauthorized: Claimed capability {"can":"space/info","with":"did:key:z6MkvKqE5ft62Uxqts9pmpWEZYqybgkLUMbKt1LgSkK1aNQz"} is invalid\n' +
    "  - Capability can not be (self) issued by 'did:key:z6MkhcbEpJpEvNVDd3n5RurquVdqs5dPU16JDU5VZTDtFgnn'\n" +
    '  - Delegated capability not found\n' +
    '  - Encountered unknown capabilities\n' +
    '    - {"nb":{"link":{"code":514,"version":1,"hash":{"0":18,"1":32,"2":26,"3":58,"4":168,"5":146,"6":239,"7":237,"8":138,"9":216,"10":183,"11":37,"12":84,"13":117,"14":196,"15":48,"16":169,"17":219,"18":238,"19":43,"20":58,"21":6,"22":80,"23":147,"24":195,"25":200,"26":28,"27":71,"28":17,"29":104,"30":151,"31":80,"32":130,"33":75}},"size":47243},"can":"store/add","with":"did:key:z6MkvKqE5ft62Uxqts9pmpWEZYqybgkLUMbKt1LgSkK1aNQz"}\n' +
    '    at Mh (d1-beta-facade.entry.js:7203:22)\n' +
    '    at async Object.info (d1-beta-facade.entry.js:8206:11)\n' +
    '    at async dx (d1-beta-facade.entry.js:8148:12)\n' +
    '    at async lx (d1-beta-facade.entry.js:8136:12)\n' +
    '    at async fx (d1-beta-facade.entry.js:8130:42)\n' +
    '    at async fg (d1-beta-facade.entry.js:9039:11)\n' +
    '    at async Bo.fetch (d1-beta-facade.entry.js:3685:17)\n' +
    '    at async Object.fetch (d1-beta-facade.entry.js:11153:13)',
  message: 'Claimed capability {"can":"space/info","with":"did:key:z6MkvKqE5ft62Uxqts9pmpWEZYqybgkLUMbKt1LgSkK1aNQz"} is invalid\n' +
    "  - Capability can not be (self) issued by 'did:key:z6MkhcbEpJpEvNVDd3n5RurquVdqs5dPU16JDU5VZTDtFgnn'\n" +
    '  - Delegated capability not found\n' +
    '  - Encountered unknown capabilities\n' +
    '    - {"nb":{"link":{"code":514,"version":1,"hash":{"0":18,"1":32,"2":26,"3":58,"4":168,"5":146,"6":239,"7":237,"8":138,"9":216,"10":183,"11":37,"12":84,"13":117,"14":196,"15":48,"16":169,"17":219,"18":238,"19":43,"20":58,"21":6,"22":80,"23":147,"24":195,"25":200,"26":28,"27":71,"28":17,"29":104,"30":151,"31":80,"32":130,"33":75}},"size":47243},"can":"store/add","with":"did:key:z6MkvKqE5ft62Uxqts9pmpWEZYqybgkLUMbKt1LgSkK1aNQz"}'
}
@hugomrdias
Copy link
Contributor

  • add test for derived caps like space/info from store/add
  • check if the fake rpc route fixes this
  • check ucanto for permanent fix

hugomrdias added a commit that referenced this issue Dec 6, 2022
gobengo added a commit that referenced this issue Dec 7, 2022
🤖 I have created a release *beep* *boop*
---


##
[2.0.0](capabilities-v1.0.0...capabilities-v2.0.0)
(2022-12-07)


### ⚠ BREAKING CHANGES

* upgrade access-api @ucanto/* and @ipld/dag-ucan major versions
([#246](#246))
* upgrade to `@ucanto/{interface,principal}`@^4.0.0
([#238](#238))
* follow up on the capabilities extract
([#239](#239))

### Features

* **access-client:** cli and recover
([#207](#207))
([adb3a8d](adb3a8d))
* follow up on the capabilities extract
([#239](#239))
([ef5e779](ef5e779))
* Revert "feat!: upgrade to `@ucanto/{interface,principal}`@^4.0.0"
([#245](#245))
([c182bbe](c182bbe))
* upgrade access-api @ucanto/* and @ipld/dag-ucan major versions
([#246](#246))
([5e663d1](5e663d1))
* upgrade to `@ucanto/{interface,principal}`@^4.0.0
([#238](#238))
([2f3bab8](2f3bab8))


### Bug Fixes

* fix Access API cannot get space/info
[#243](#243)
([#255](#255))
([1bacd54](1bacd54))
* generated typdefs
([#258](#258))
([2af1b76](2af1b76))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: Benjamin Goering <171782+gobengo@users.noreply.github.com>
hugomrdias added a commit that referenced this issue Dec 13, 2022
🤖 I have created a release *beep* *boop*
---


##
[4.0.0](access-api-v3.0.0...access-api-v4.0.0)
(2022-12-13)


### ⚠ BREAKING CHANGES

* upgrade access-api @ucanto/* and @ipld/dag-ucan major versions
([#246](#246))
* access-client store decoupling
([#228](#228))
* upgrade to `@ucanto/{interface,principal}`@^4.0.0
([#238](#238))
* follow up on the capabilities extract
([#239](#239))
* doc capabilities & make requierd nb non-optionals
([#159](#159))
* Remove 0.8 caps and add account delegation to the service
([#123](#123))
* bump to 0.9
([#116](#116))

### Features

* [#153](#153)
([#177](#177))
([d6d448c](d6d448c))
* access-api uses DID env variable when building its ucanto server id
([#275](#275))
([311da78](311da78))
* **access-client:** cli and recover
([#207](#207))
([adb3a8d](adb3a8d))
* account recover with email
([#149](#149))
([6c659ba](6c659ba))
* bump to 0.9
([#116](#116))
([3e0b63f](3e0b63f))
* doc capabilities & make requierd nb non-optionals
([#159](#159))
([6496773](6496773))
* follow up on the capabilities extract
([#239](#239))
([ef5e779](ef5e779))
* Remove 0.8 caps and add account delegation to the service
([#123](#123))
([878f8c9](878f8c9)),
closes [#117](#117)
[#121](#121)
* Revert "feat!: upgrade to `@ucanto/{interface,principal}`@^4.0.0"
([#245](#245))
([c182bbe](c182bbe))
* sync encode/decode delegations
([#276](#276))
([ab981fb](ab981fb))
* upgrade access-api @ucanto/* and @ipld/dag-ucan major versions
([#246](#246))
([5e663d1](5e663d1))
* upgrade to `@ucanto/{interface,principal}`@^4.0.0
([#238](#238))
([2f3bab8](2f3bab8))


### Bug Fixes

* 0.9 ([#78](#78))
([1b1ed01](1b1ed01))
* add validation copy
([#257](#257))
([7f50af4](7f50af4)),
closes [#139](#139)
* fix Access API cannot get space/info
[#243](#243)
([#255](#255))
([1bacd54](1bacd54))
* fix d1 migrations
([#264](#264))
([fb8c09d](fb8c09d))
* make d1 spaces.metadata nullable and change to kysely
([#284](#284))
([c8a9ce5](c8a9ce5)),
closes [#280](#280)
* make multiformats 9 go away
([#133](#133))
([2668880](2668880))
* miniflare dev script
([#137](#137))
([1c5a4e2](1c5a4e2))
* testing staging deploy
([3d500fa](3d500fa))
* try to deploy api staging
([18b7b29](18b7b29))
* try to deploy staging
([c616818](c616818))


### Code Refactoring

* access-client store decoupling
([#228](#228))
([a785278](a785278))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
gobengo pushed a commit that referenced this issue Apr 11, 2023
gobengo added a commit that referenced this issue Apr 11, 2023
🤖 I have created a release *beep* *boop*
---


##
[2.0.0](capabilities-v1.0.0...capabilities-v2.0.0)
(2022-12-07)


### ⚠ BREAKING CHANGES

* upgrade access-api @ucanto/* and @ipld/dag-ucan major versions
([#246](#246))
* upgrade to `@ucanto/{interface,principal}`@^4.0.0
([#238](#238))
* follow up on the capabilities extract
([#239](#239))

### Features

* **access-client:** cli and recover
([#207](#207))
([720dafb](720dafb))
* follow up on the capabilities extract
([#239](#239))
([717fcaa](717fcaa))
* Revert "feat!: upgrade to `@ucanto/{interface,principal}`@^4.0.0"
([#245](#245))
([197439e](197439e))
* upgrade access-api @ucanto/* and @ipld/dag-ucan major versions
([#246](#246))
([65d191c](65d191c))
* upgrade to `@ucanto/{interface,principal}`@^4.0.0
([#238](#238))
([309aff0](309aff0))


### Bug Fixes

* fix Access API cannot get space/info
[#243](#243)
([#255](#255))
([1a74031](1a74031))
* generated typdefs
([#258](#258))
([dfd2bd5](dfd2bd5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: Benjamin Goering <171782+gobengo@users.noreply.github.com>
gobengo pushed a commit that referenced this issue Apr 11, 2023
🤖 I have created a release *beep* *boop*
---


##
[4.0.0](access-api-v3.0.0...access-api-v4.0.0)
(2022-12-13)


### ⚠ BREAKING CHANGES

* upgrade access-api @ucanto/* and @ipld/dag-ucan major versions
([#246](#246))
* access-client store decoupling
([#228](#228))
* upgrade to `@ucanto/{interface,principal}`@^4.0.0
([#238](#238))
* follow up on the capabilities extract
([#239](#239))
* doc capabilities & make requierd nb non-optionals
([#159](#159))
* Remove 0.8 caps and add account delegation to the service
([#123](#123))
* bump to 0.9
([#116](#116))

### Features

* [#153](#153)
([#177](#177))
([7fbf2a1](7fbf2a1))
* access-api uses DID env variable when building its ucanto server id
([#275](#275))
([e8326ec](e8326ec))
* **access-client:** cli and recover
([#207](#207))
([720dafb](720dafb))
* account recover with email
([#149](#149))
([91ad47d](91ad47d))
* bump to 0.9
([#116](#116))
([29cf63c](29cf63c))
* doc capabilities & make requierd nb non-optionals
([#159](#159))
([f6b6d06](f6b6d06))
* follow up on the capabilities extract
([#239](#239))
([717fcaa](717fcaa))
* Remove 0.8 caps and add account delegation to the service
([#123](#123))
([c3c58b9](c3c58b9)),
closes [#117](#117)
[#121](#121)
* Revert "feat!: upgrade to `@ucanto/{interface,principal}`@^4.0.0"
([#245](#245))
([197439e](197439e))
* sync encode/decode delegations
([#276](#276))
([9d48372](9d48372))
* upgrade access-api @ucanto/* and @ipld/dag-ucan major versions
([#246](#246))
([65d191c](65d191c))
* upgrade to `@ucanto/{interface,principal}`@^4.0.0
([#238](#238))
([309aff0](309aff0))


### Bug Fixes

* 0.9 ([#78](#78))
([561c68b](561c68b))
* add validation copy
([#257](#257))
([0bd49ce](0bd49ce)),
closes [#139](#139)
* fix Access API cannot get space/info
[#243](#243)
([#255](#255))
([1a74031](1a74031))
* fix d1 migrations
([#264](#264))
([5b8a6e7](5b8a6e7))
* make d1 spaces.metadata nullable and change to kysely
([#284](#284))
([7f09479](7f09479)),
closes [#280](#280)
* make multiformats 9 go away
([#133](#133))
([cdb4109](cdb4109))
* miniflare dev script
([#137](#137))
([f2cffb2](f2cffb2))
* testing staging deploy
([975cffc](975cffc))
* try to deploy api staging
([5130464](5130464))
* try to deploy staging
([4e56657](4e56657))


### Code Refactoring

* access-client store decoupling
([#228](#228))
([64c7496](64c7496))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants