dotenvx icon indicating copy to clipboard operation
dotenvx copied to clipboard

[BUG] "Invalid private key" for ^1.20.0 when DOTENVX_PRO_USER set

Open gander opened this issue 1 year ago • 6 comments

rm .env*
touch .env
dotenvx set HELLO World

Exits with Invalid private key message and 0 status for ^1.20.0, when file $HOME/.config/dotenvx/.env contains DOTENVX_PRO_USER.

gander avatar Nov 15 '24 17:11 gander

are you using dotenvx-pro @gander? it's still under development so I'd recommend just removing it for now and clearing out your ~/.config/dotenvx/.env file

motdotla avatar Nov 15 '24 17:11 motdotla

@motdotla yes, I'm testing pro, but as long as nothing interesting for me is happening there, I can delete it

gander avatar Nov 15 '24 18:11 gander

I changed the name to .env~pro to be able to test it in the future and so that it does not conflict with projects.

gander avatar Nov 15 '24 20:11 gander

But as part of pro development you can verify this case. Originally I was just going to report a problem with these versions, but I decided to check if it was a pro issue, and actually checked which value was causing problems. Use this research.

gander avatar Nov 15 '24 20:11 gander

ok thank you, i appreciate that. will investigate soon.

motdotla avatar Nov 15 '24 20:11 motdotla

if you download the latest pro and run dotenvx pro login i believe it should fix this problem up for you.

$ curl -fsS https://dotenvx.sh/pro | sh
$ dotenvx pro login

motdotla avatar Mar 12 '25 14:03 motdotla

☠️

gander avatar Aug 20 '25 17:08 gander