skip to Main Content

Javascript – I have json logs for node error and I have to print one by one

I have a error message like this in json { "message": "2023-08-04T13:52:01: Error: listen EADDRINUSE: address already in use :::55002023-08-04T13:52:01: at Server.setupListenHandle [as _listen2] (node:net:1432:16)2023-08-04T13:52:01: at listenInCluster (node:net:1480:12)2023-08-04T13:52:01: at Server.listen (node:net:1568:7)2023-08-04T13:52:01: at ExpressAdapter.listen (/var/www/html/01-haiku/haiku_back/node_modules/@nestjs/platform-express/adapters/express-adapter.js:68:32)2023-08-04T13:52:01: at /var/www/html/01-haiku/haiku_back/node_modules/@nestjs/core/nest-application.js:166:302023-08-04T13:52:01: at new Promise (<anonymous>)2023-08-04T13:52:01:…

VIEW QUESTION

Unable to access data from mongoDB?

I followed a tutorial, connected to mongoDB via mongoose, but for some reason the console.log(data) doesn't show anything. const mongoose = require('mongoose'); const mongoURI = 'mongodb+srv://gofood:[email protected]/?retryWrites=true&w=majority' process.on('uncaughtException', err => { console.log('UNCAUGHT EXCEPTION! 💥 Shutting down...'); console.log(err.name, err.message); process.exit(1); }); async…

VIEW QUESTION
Back To Top
Search