Https://replit.com/@memojojo/boilerplate-express-4

Tell us what’s happening:
Describe your issue in detail here.
When I am summating the link in the . env its not accepting it
Your project link(s)

solution: https://replit.com/@memojojo/boilerplate-express-4

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15.

Challenge: Use the .env File

Link to the challenge:

It looks like you are using the wrong url because I get this message.

Make sure to use the correct url.
It would be same one you used for the other challenges.

Can you tell me the correct one?

Hello there,

When I navigate to the route you have made (https://boilerplate-express-4--memojojo.repl.co/json), I see this response:

{"message":"Hello json"}

This suggests the value you have for MESSAGE_STYLE is not correct, because, if it were correct, this code would run:

 if(process.env.MESSAGE_STYLE === "uppercase"){
    response.json({"message": "HELLO JSON"})

Hope this helps

1 Like

Hello,

To type only this one or to dele it whole

I am not sure I understand what you are saying.

You need to set the value of MESSAGE_STYLE to be equal to 'uppercase' as an environment variable. In Replit, this is done, as described here:

Hello,
Im sorry for disturbing . Can you just tell from where to get the correct link

If you got your link from here, then that is the correct link.

But after reading @Sky020 's response, it sounds like the env file is the issue.

Triple check that this is filled out correctly.
Go to the secrets tab.
Hover your mouse over the secret you just created.
Click on the pencil icon and check to make sure the key and values are correct.

Screen Shot 2021-04-24 at 11.14.27 AM

Tank you so much for helping

Thank you so much it works

A post was split to a new topic: Please help with install mongoose challenge

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