skip to Main Content

Mongodb – formidable – SyntaxError: Unexpected token – in JSON at position 0 when sending POST request

I am building the backend for creating blog posts for my web application while following a tutorial. The technologies I am using are MongoDB, express.js, formidable The relevant files are: server.js ...... // middlewares app.use(express.urlencoded({extended: false})); app.use(express.json()); app.use(morgan('dev')); app.use(cookieParser()); //…

VIEW QUESTION
Back To Top
Search