Everything works fine but my submission does not take place

Tell us what’s happening:
The code seems to be work just fine. Even the webpage handling the /json route correctly. Still, submission does not take place.

Here is the link of my glitch

Your code so far

app.get('/json', function (req, res) {
  if(process.env.MESSAGE_STYLE === "uppercase"){
    res.json({"message": "Hello json"})

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36.

Challenge: Use the .env File

Link to the challenge:

Did you use the live app link. If not, that is the link that is always going to be asked.
Here’s how to get it.

here is the live app link - https://shawon-node.glitch.me/json

Look at what the challenge says you did wrong…

1 Like

Oh! I got it… My bad… The value of the message should be in uppercase… Thanks for your support :heart: