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

fix: return piece accept receipt error #1512

Merged
merged 2 commits into from
Jun 21, 2024
Merged

Conversation

alanshaw
Copy link
Member

This was causing the following error in production:

2024-06-21T04:05:01.605Z	ee3a792e-71d8-4188-9a45-a3f44a153719	WARN	HandlerExecutionError: service handler {can: "filecoin/info"} error: Cannot read properties of undefined (reading 'aggregate')
    at invoke (/node_modules/@ucanto/server/src/server.js:157:21)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at run (/node_modules/@web3-storage/upload-api/src/lib.js:169:10)
    ... 4 lines matching cause stack trace ...
    at processResult (/node_modules/src/awslambda.ts:326:50) {
  capability: {
    nb: {
      piece: CID(bafkzcibdyuhqqhgb72e23rtoielekn2lsknb4naxhvyz6fhsd7bms4ld6ghbaiqi)
    },
    can: 'filecoin/info',
    with: 'did:key:z6MkiBeiHFA6kbA2mchg1F9juxCuHuLgymzJpanKswpBZmQT'
  },
  cause: TypeError: Cannot read properties of undefined (reading 'aggregate')
      at filecoinInfo (/node_modules/@web3-storage/filecoin-api/src/storefront/service.js:298:20)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at invoke (/node_modules/@ucanto/server/src/server.js:145:23)
      at run (/node_modules/@web3-storage/upload-api/src/lib.js:169:10)
      at async Promise.all (index 0)
      at execute (/node_modules/@web3-storage/upload-api/src/lib.js:139:5)
      at handle (/node_modules/@web3-storage/upload-api/src/lib.js:108:20)
      at ucanInvocationRouter (/upload-api/functions/ucan-invocation-router.js:298:20)
      at processResult (/node_modules/src/awslambda.ts:326:50),
  error: true
}

@alanshaw alanshaw merged commit 05283cf into main Jun 21, 2024
2 checks passed
@alanshaw alanshaw deleted the fix/return-piece-accept-error branch June 21, 2024 09:48
alanshaw pushed a commit that referenced this pull request Jun 21, 2024
🤖 I have created a release *beep* *boop*
---


##
[7.1.1](filecoin-api-v7.1.0...filecoin-api-v7.1.1)
(2024-06-21)


### Fixes

* return piece accept receipt error
([#1512](#1512))
([05283cf](05283cf))

---
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>
Copy link
Contributor

@travis travis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

This pull request was closed.
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 this pull request may close these issues.

2 participants