`MESSAGE_STYLE`: use-the-env-file: Nothing Works

The response of the endpoint /json should change according to the environment variable MESSAGE_STYLE

I have tried every code there is on any forum and github but this error keeps constant even though many of the people facing this issue have posted solution and corrections. None of it seems to be working . Tried each on FreeCodeCamp Forum Use the .env File

Challenge: Use the .env File

Link to the challenge:

Hello~!

Please provide a link to your glitch project so we can view the code and assist you. :slight_smile:

Oh my bad, I deleted the project in frustration. But here is the link to one of the solutions from one of the fellows on the forum claiming it’s functional.

Taking a look at that link, it appears that the .env file was not present.

I’ve gone ahead and added that for you, but you’ll need to add the MESSAGE_STYLE key to that file like the instructions explain. If you still run in to trouble, feel free to let me know and I will take another look. :slight_smile:

Hi, I actually did add the .env file as one of the posts suggested. I’m trying again thank you for your support

1 Like