Tell us what’s happening:
It is the first challenge I try to complete on my own with Mongoose.
I can’t find the reason why the app crashes every time I try to access the Url model in my database.
It always claims that it tries to access properties of null!
Part of the log:
My code so far:
boilerplate-project-urlshortener-1 - Replit
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Challenge: URL Shortener Microservice
Link to the challenge: