I’ve been working on the .env file lesson, and I cannot get the tests to pass. I have read other posts that listed numerous suggestions and solutions, but none of them are passing for me. I also read that there is sometimes a problem with glitch, so I also made my project in repl.it when I couldn’t get it to pass in glitch. The repl.it version didn’t pass either. I have attached my glitch code and my repl.it code. Does anyone have any suggestions?
That one was weird. You did put the new variable in the env file, right? What it took for me to pass was to put the object values as a variable, that depending on the control statement, used the string function to modify it accordingly.
@CactusWren2020 I just tried putting the object values as a variable, and it still isn’t working for me. I do have the new variable in the .env file, and it’s my only variable in the .env file. @Sky020 I also tried adding those two links to the array on line 13, but the tests are still not passing.
I copied all three links to my code down below because I wasn’t sure which one would be best. I tried these new fixes in glitch and repl.it. I’m hoping to be able to get it to work in glitch because that seems like the preferred program by FCC. I’m not sure why it’s not passing, everything seems to be how it wants.
I’m sure @sky020 will be able to help you, but FYI I couldn’t see the .env because I’m not a part of the project. I guess that’s how Glitch is set up, the .env is for “secret” stuff.
Thanks! I realized that I shouldn’t have ended the .env line with a “;” , apparently it made the ; part of my variable. Along with not having the dotenv package, that was likely what was causing the errors!