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

error result invoking access/claim against staging: 'TypeError: Input should be a non-empty Uint8Array.\n' #471

Closed
gobengo opened this issue Mar 3, 2023 · 2 comments
Assignees

Comments

@gobengo
Copy link
Contributor

gobengo commented Mar 3, 2023

Discovered While Testing

    ok 7 - can invoke access/authorize against staging # SKIP
      ---
      duration_ms: 0.077875
      ...
    claimResult {
      name: 'HandlerExecutionError',
      cause: {
        name: 'TypeError',
        stack: 'TypeError: Input should be a non-empty Uint8Array.\n' +
          '    at Kl (d1-beta-facade.entry.js:15342:11)\n' +
          '    at AW (d1-beta-facade.entry.js:20990:11)\n' +
          '    at _a56.find (d1-beta-facade.entry.js:20974:13)\n' +
          '    at async HU (d1-beta-facade.entry.js:15567:18)\n' +
          '    at async d1-beta-facade.entry.js:15584:41\n' +
          '    at async EB (d1-beta-facade.entry.js:14474:12)\n' +
          '    at async vB (d1-beta-facade.entry.js:14462:12)\n' +
          '    at async bB (d1-beta-facade.entry.js:14456:42)\n' +
          '    at async YC (d1-beta-facade.entry.js:15634:11)\n' +
          '    at async bd.fetch (d1-beta-facade.entry.js:9706:17)',
        message: 'Input should be a non-empty Uint8Array.'
      },
      error: true,
      stack: 'HandlerExecutionError: service handler {can: "access/claim"} error: Input should be a non-empty Uint8Array.\n' +
        '    at EB (d1-beta-facade.entry.js:14476:13)\n' +
        '    at async vB (d1-beta-facade.entry.js:14462:12)\n' +
        '    at async bB (d1-beta-facade.entry.js:14456:42)\n' +
        '    at async YC (d1-beta-facade.entry.js:15634:11)\n' +
        '    at async bd.fetch (d1-beta-facade.entry.js:9706:17)\n' +
        '    at async Object.fetch (d1-beta-facade.entry.js:21017:13)',
      message: 'service handler {can: "access/claim"} error: Input should be a non-empty Uint8Array.',
      capability: {
        can: 'access/claim',
        with: 'did:key:z6MkkUymFxGqXWRqFNiaU4jCa2efexfDCNADqD7sQK3RbU2j'
      }
    }
@gobengo
Copy link
Contributor Author

gobengo commented Mar 3, 2023

The good news is that this error is after the one that was happening due to #464
Which I did a workaround for last night.

gobengo added a commit that referenced this issue Mar 3, 2023
… if failed bytesToDelegations (#476)

Motivation:
* aid in debugging #471 
* hope this
* confirms that this error is coming from `DbDelegationsStorage#find` (I
see '.find' in the hard-to-read sentry stack trace)
* gives insight into what the db row is like (esp `row.bytes`) that
can't be parsed
@gobengo
Copy link
Contributor Author

gobengo commented Mar 3, 2023

@gobengo gobengo closed this as completed Mar 3, 2023
@gobengo gobengo self-assigned this Mar 3, 2023
gobengo added a commit that referenced this issue Apr 11, 2023
… if failed bytesToDelegations (#476)

Motivation:
* aid in debugging #471 
* hope this
* confirms that this error is coming from `DbDelegationsStorage#find` (I
see '.find' in the hard-to-read sentry stack trace)
* gives insight into what the db row is like (esp `row.bytes`) that
can't be parsed
Peeja pushed a commit to storacha/upload-service that referenced this issue Jan 17, 2025
the colors match the login box, so are less jarring, and the cancel
button is hidden! it doesn't work yet! See next PR.

**after**
<img width="1582" alt="Screenshot 2023-03-24 at 14 41 25"
src="https://user-images.githubusercontent.com/58871/227556717-046a554e-72ff-47ce-a506-85cca7e40dd4.png">

**before**
<img width="1582" alt="Screenshot 2023-03-24 at 14 41 50"
src="https://user-images.githubusercontent.com/58871/227556789-970db3b7-7965-4164-941e-ef781b139d83.png">


License: MIT

Signed-off-by: Oli Evans <[email protected]>
Peeja pushed a commit to storacha/upload-service that referenced this issue Jan 17, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.3.1](storacha/w3ui@w3console-v1.3.0...w3console-v1.3.1)
(2023-03-24)


### Bug Fixes

* w3console email check page improvements
([storacha#471](storacha/w3ui#471))
([5ed999b](storacha/w3ui@5ed999b))

---
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: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Peeja pushed a commit to storacha/upload-service that referenced this issue Jan 29, 2025
the colors match the login box, so are less jarring, and the cancel
button is hidden! it doesn't work yet! See next PR.

**after**
<img width="1582" alt="Screenshot 2023-03-24 at 14 41 25"
src="https://user-images.githubusercontent.com/58871/227556717-046a554e-72ff-47ce-a506-85cca7e40dd4.png">

**before**
<img width="1582" alt="Screenshot 2023-03-24 at 14 41 50"
src="https://user-images.githubusercontent.com/58871/227556789-970db3b7-7965-4164-941e-ef781b139d83.png">


License: MIT

Signed-off-by: Oli Evans <[email protected]>
Peeja pushed a commit to storacha/upload-service that referenced this issue Jan 29, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.3.1](storacha/w3ui@w3console-v1.3.0...w3console-v1.3.1)
(2023-03-24)


### Bug Fixes

* w3console email check page improvements
([storacha#471](storacha/w3ui#471))
([dedb337](storacha/w3ui@dedb337))

---
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: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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

No branches or pull requests

1 participant