You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When reading a multi-line environment variable (e.g. an SSH key) only the first line is read when using load_env. dotenv_values appears to read the multiline variable correctly.
Tested on a Apple M2 MacBook Air running Sonoma 14.7.4 with Python 3.12.9. While I had this issue inside a functions-framework function, I was able to reproduce it outside of that environment (see below.)
When reading a multi-line environment variable (e.g. an SSH key) only the first line is read when using
load_env
.dotenv_values
appears to read the multiline variable correctly.Tested on a Apple M2 MacBook Air running Sonoma 14.7.4 with Python 3.12.9. While I had this issue inside a
functions-framework
function, I was able to reproduce it outside of that environment (see below.)As an example, try the following
.env
file:And the following Python code:
When I run that code, it produces the following output:
The text was updated successfully, but these errors were encountered: