dotenvx / dotenvx

a better dotenv–from the creator of `dotenv`
https://dotenvx.com/docs
BSD 3-Clause "New" or "Revised" License
2.95k stars 43 forks source link

error code: `[INVALID_PRIVATE_KEY]` #465

Closed motdotla closed 5 hours ago

motdotla commented 5 hours ago

Are you getting this error?

[INVALID_PRIVATE_KEY] could not decrypt KEY using private key 'DOTENV_PRIVATE_KEY=priv...'

How to fix:

Check your DOTENV_PRIVATE_KEY. Likely you are using the incorrect one - maybe one for a different environment or for a different project.

More

Still tripped up? Leave your comment below and I'll help debug for you. Suggestions also welcome!

motdotla commented 5 hours ago

closing this but if you run into this error and need help just @ me @motdotla. I will re-open and help. This issue is for helping each other debug configuration errors around encryption/decryption.