Environment variable test timing out on replit

Tell us what’s happening:
MESSAGE_STYLE=uppercase env variable added via the secrets tab per description. /json route returns modified response as expected. When replit link submitted however, test times out and session throws exception on replit.

Your project link(s)

solution: https://replit.com/@zenlex/boilerplate-express-2

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0

Challenge: Use the .env File

Link to the challenge:

Yes same here as well. I am having trouble with this.
My code appears to send the json data but somehow it’s wrong.

1 Like

I changed nothing in my code and ran it again today and it passed.

What the heck. Alright I’ll try again.

I figured it out. you want process.env.MESSAGE_STYLE === “uppercase”

since its javascript. === is key.