Stuck at last program

SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse ()
at /home/runner/boilerplate-mongomongoose-1/server.js:346:29
at /home/runner/boilerplate-mongomongoose-1/node_modules/mongoose/lib/model.js:4920:18
Describe your issue in detail here.

Your project link(s)


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36

Challenge: Delete Many Documents with model.remove()

Link to the challenge:

did you create a .env file and paste your mongodb URI inside it ?

If not, go create that file and paste this inside it

MONGO_URI={Your mongodb URI}

change {} to your URI

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