mars
April 23, 2021, 2:08pm
#1
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.
mars
April 23, 2021, 6:39pm
#3
Can you tell me the correct one?
Sky020
April 23, 2021, 7:09pm
#6
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
mars
April 23, 2021, 7:25pm
#9
Hello,
To type only this one or to dele it whole
Sky020
April 23, 2021, 7:41pm
#10
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:
mars
April 24, 2021, 4:57pm
#11
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.
mars
April 25, 2021, 3:45pm
#13
Tank you so much for helping
mars
April 25, 2021, 3:45pm
#14
Thank you so much it works
system
Closed
October 27, 2021, 1:14am
#16
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.