micro-integrator icon indicating copy to clipboard operation
micro-integrator copied to clipboard

When there is no new line in the .env file, the last environmental variable value is not picked.

Open ShammiL opened this issue 6 months ago • 3 comments

Description

Let's say I have a .env file with the following values.

HR_SMTP_HOST=smtp.gmail.com
HR_SMTP_PORT=465
HR_SMTP_PASSWORD=werdrktoetkdmwl

Note that there is no new line after the last variable HR_SMTP_PASSWORD.

If we deploy the CAR app with the above .env file and run the MI server on a terminal with the command sh micro-integrator.sh --env-file=/Users/shammi/Projects/MI/discord_issues/emailConfig/.env, it will show the following error.

ERROR {ConfigDeployer} - The value of the key:[HR_SMTP_PASSWORD] is not found.

But if we do the same with a new line at the end like below,

HR_SMTP_HOST=smtp.gmail.com
HR_SMTP_PORT=465
HR_SMTP_PASSWORD=werdrktoetkdmwl

then there will be no error reading the last variable.

It should also be noted that this error cannot be reproduced if the server is started through the VSCode extension.

Steps to Reproduce

Explained in the Description section

Version

4.4.0

Environment Details (with versions)

No response

ShammiL avatar Jun 19 '25 03:06 ShammiL

I’d like to work on this issue. ETA: 1–2 days for a PR

PasinduPabasaraSL avatar Sep 23 '25 08:09 PasinduPabasaraSL

I can work on this @ShammiL . Thanks

yasandu0505 avatar Sep 26 '25 18:09 yasandu0505

Hi @chanikag @ShammiL I had find a solution for this issue,Please assign it to me.I will add a PR as soon as possible

Harikrishnan1367709 avatar Sep 30 '25 08:09 Harikrishnan1367709