textileio / textile

Textile hub services and buckets lib
MIT License
227 stars 45 forks source link

hub cli's apiSecret flag not working (cannot decode multibase for zero length string) #538

Open tennox opened 3 years ago

tennox commented 3 years ago

I get an error about missing/empty secret, regardless of the content or presence of the --apiSecret flag.

$ hub --apiKey bufrrhhnudr5g56vcracbezmryi --apiSecret be3XXXncngi buck init -n test
Encrypt bucket contents: y
Error! Invalid secret: cannot decode multibase for zero length string

Seems to work fine when using env variable: HUB_API_SECRET=<secret> hub --apiKey ....

-> Slack thread

sanderpick commented 3 years ago

Thanks for the report! Fixed here: https://github.com/textileio/textile/pull/541