web3-storage / backup

A tool to backup all data for disaster recovery.
0 stars 0 forks source link

Some errors are not for modifying #5

Closed olizilla closed 1 year ago

olizilla commented 1 year ago

Seeing

2023-02-23T14:30:10 2023-02-23T14:30:10.248Z backup:nft-2.json failed to backup xxx TypeError: Cannot set property code of  which has only a getter
2023-02-23T14:30:10     at withChunkTimeout (file:///home/circleci/app/ipfs-client.js:113:16)
2023-02-23T14:30:10     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-02-23T14:30:10     at async IpfsClient.dagExport (file:///home/circleci/app/ipfs-client.js:54:5)

from https://github.com/web3-storage/backup/blob/7af03a2d4c5c11593dc3535537fbb06e70c7f50a/ipfs-client.js#L113

as we try to modify the error.code property