Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Failed to parse dotenv file. Encountered unexpected whitespace #4909

Open
masihgh opened this issue Jan 22, 2025 · 0 comments
Open

[Bug]: Failed to parse dotenv file. Encountered unexpected whitespace #4909

masihgh opened this issue Jan 22, 2025 · 0 comments
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.

Comments

@masihgh
Copy link

masihgh commented Jan 22, 2025

Error Message and Logs

#13 21.94 Failed to parse dotenv file. Encountered unexpected whitespace at [Foo Baar Appliaction].

Steps to Reproduce

1.Set the environment variable APP_NAME in the .env file as follows:
APP_NAME="Foo Baar Application"

  1. The .env editor automatically changes it to:
    APP_NAME= Foo Baar Appliaction

3.The missing double quotes and unexpected whitespace result in a parsing error during the build process, as Laravel and Composer are unable to properly parse the .env file.

Note the missing double quotes around the value and the extra whitespace after =.

Coolify Version

v4.0.0-beta.385

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

No response

Additional Information

When attempting to build my application using Coolify v4.0.0-beta.385, I encountered an error while parsing the .env file. Specifically, the build fails with the following error:
Failed to parse dotenv file. Encountered unexpected whitespace at [Foo Baar Appliaction].

@masihgh masihgh added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Jan 22, 2025
@masihgh masihgh changed the title [Bug]: Env Varibale Set Delete "" from Variables [Bug]: Failed to parse dotenv file. Encountered unexpected whitespace Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.
Projects
None yet
Development

No branches or pull requests

1 participant