ethersphere / swarm-cli

Manage your Bee node and interact with the Swarm network via the CLI
BSD 3-Clause "New" or "Revised" License
48 stars 21 forks source link

Uploading encrypted file throws error #365

Closed agazso closed 2 years ago

agazso commented 2 years ago

When uploading a file with the --encrypt flag there is an error printed out:

Swarm hash: 62dc24d13e4de5955c4c131d019099014b508db2a46f821da061ddf214d57f8eea2abf05fd8dcd2e2d45ce5517fb18b55e84f46359c01994fe5e8cfe72b368fc
URL: http://localhost:1633/bzz/62dc24d13e4de5955c4c131d019099014b508db2a46f821da061ddf214d57f8eea2abf05fd8dcd2e2d45ce5517fb18b55e84f46359c01994fe5e8cfe72b368fc/
ERROR Reference does not have expected length 64 characters. Encrypted references are not supported.

Most likely the problem is that the CLI tries to print out the bzz.link but for that encrypted references are not supported. The solution could be to omit the bzz.link output when the --encrypt flag is provided.