Install and Set Up Mongoose Not Working

Install and Set Up Mongoose Not Working
0

#1

Hi there,

I have been trying to complete this challenge but the test keep failing even though I am sure my code is correct.

When I looked in the console log, I saw the following errors:

GET https://mongoose-starter.glitch.me//_api/file/package.json 404 ()

install-and-set-up-mongoose:1 Failed to load https://mongoose-starter.glitch.me//_api/file/package.json: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://learn.freecodecamp.org' is therefore not allowed access. The response had HTTP status code 404.
VM121:2 

Cross-Origin Read Blocking (CORB) blocked cross-origin response https://mongoose-starter.glitch.me//_api/file/package.json with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.

So I think there is probably a problem on your end. Let me know if you are able to fix it!

Thanks, Sam


#2

Can you share your code to show us how you set this up?


#3

Hey,

So all the source code can be found on Glitch: https://glitch.com/edit/#!/mongoose-starter

Obviously MONGO_URI in .env is filled in, but you won’t be able to see it.


#4

Make sure you are starting off with the correct template.

Go back to the introduction page for this curriculum and click that link below to properly setup.

Start this project on Glitch using this link or clone this repository on GitHub! If you use Glitch, remember to save the link to your project somewhere safe!