# Use the .env exercise fails on Fcc Node & Express

**URL:** <https://forum.freecodecamp.org/t/use-the-env-exercise-fails-on-fcc-node-express/446623>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [February 16, 2021, 2:06pm UTC](https://forum.freecodecamp.org/t/use-the-env-exercise-fails-on-fcc-node-express/446623 "2021-02-16T14:06:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisngure2599](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/chrisngure2599/32/206010_2.png) [@chrisngure2599](https://forum.freecodecamp.org/u/chrisngure2599)\
**Post date:** [February 16, 2021, 2:06pm UTC](https://forum.freecodecamp.org/t/use-the-env-exercise-fails-on-fcc-node-express/446623/1 "2021-02-16T14:06:05Z")

</div>

Hello i am tring to do the “APIs and Microservices” i have got to the using .env

Here is the code i am using  
app.get(‘/’,function(req , res){  
var response=null;  
if(process.env.MESSAGE\_STYLE===“uppercase”)  
{  
response=“Hello World”.toUpperCase()  
} else{  
response=“Hello World”  
}  
res.json({“message”:response})  
})

The answer tests says am wrong but when i try to test nothing is wrong. Any help please!  
**Challenge:** Use the .env File

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/back-end-development-and-apis/basic-node-and-express/use-the--env-file)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![Catalactics](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/catalactics/32/151364_2.png) [@Catalactics](https://forum.freecodecamp.org/u/Catalactics)\
**Post date:** [February 16, 2021, 2:08pm UTC](https://forum.freecodecamp.org/t/use-the-env-exercise-fails-on-fcc-node-express/446623/2 "2021-02-16T14:08:03Z")

</div>

Hey @chrisngure2599 ,

Unfortunately this is a known issue and is currently being fixed, here’s a reply I made to a similar question:

> [@My code seems to work, but the test doesn't pass](https://forum.freecodecamp.org/t/my-code-seems-to-work-but-the-test-doesnt-pass/446310/2):
>
> Hey @DragonOsman, Unfortunately this is a known problem and is currently being fixed on. Here is the github issue: Hopefully this would be fixed ASAP, but for the current time, you can skip this challenge and go on to the next one. Thank you for the understanding…

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [August 18, 2021, 2:08am UTC](https://forum.freecodecamp.org/t/use-the-env-exercise-fails-on-fcc-node-express/446623/3 "2021-08-18T02:08:39Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
