ardriveapp / ardrive-cli

The ArDrive Command Line Interface (CLI) is a Node.js application for terminal-based ArDrive workflows. It also offers utility operations for securely interacting with Arweave wallets and inspecting various Arweave blockchain conditions.
GNU Affero General Public License v3.0
78 stars 14 forks source link

Failure to process a drive with old, invalid entries #337

Open domob1812 opened 1 year ago

domob1812 commented 1 year ago

I'm using Ardrive CLI 1.22.0. I have a massive, private drive that was created a long time ago (ID is b25a41bc-1b0d-4697-83ff-6805e1f0472a). Due to bugs in an ancient version of Ardrive (not sure if it was the web or the old "sync" CLI), I have some entries in the drive that fail to properly decrypt. All of them have been superseded by later transactions, overriding the same entity, providing correct data.

The old "sync" CLI is able to handle this drive. I wasn't able to sync it with the web app, which might be just due to the size of the drive (171 GB and 50k files), or perhaps this same issue. With Ardrive CLI, when I try to list-folder the root folder (or any other operation), it fails with:

Error decrypting file data
SyntaxError: Unexpected token 'E', "Error" is not valid JSON
Error decrypting file data
Error decrypting file data
Error decrypting file data
Error decrypting file data
Error decrypting file data
Error decrypting file data

I think the CLI should be able to process my drive. Ideally it should just ignore transactions with data it can't decrypt, which in my case would be fine since those entities will receive proper data in a later transaction anyway.