Use the .env File Test Will Not Pass

Basic Node and Express - Use the .env File

The Test Wont Pass No matter what i try. Ive tried about 7 different solutions but the test wont pass no matter what. In my .env file i Have this :
and my code for the question is below. If anyone can spot an issue or tell me how to solve this id be very happy. Thanks.

This is my code so far, Ive also tried a few other solutions.

    app.get("/json", function(req, res) {

if (process.env.MESSAGE_STYLE === “uppercase”) {
res.json({ message: “HELLO JSON” });
} else {
res.json({ message: “Hello json” });

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36.

Challenge: Use the .env File

Link to the challenge:

Welcome, williamsimms.

This is a known issue that has come about with a breaking change in Glitch, and a fix is in progress. For now, you can try the following:

  1. Clone the GitHub boilerplate in another platform (CodeSandbox,, and complete the challenges there.
  2. Skip the affected challenges.

My recommendation is that you do not rely on Glitch, going forward, as it has been unstable for the last few weeks.

Hope this helps

Just tried it and competed it,Sky020 thank you so much. I can finally complete these last 2 certifications.