-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.log
2 lines (2 loc) · 3.73 KB
/
error.log
1
2
{"level":"error","message":{"reqBody":{},"reqUrl":"/api/v1/patients/653975996a0e64376bafefd7/all-reports","resBody":{"message":"Invalid status code: {\n OK: 200,\n CREATED: 201,\n NO_CONTENT: 204,\n REDIRECT: 301,\n BAD_REQUEST: 400,\n UNAUTHORIZED: 401,\n FORBIDDEN: 403,\n NOT_FOUND: 404,\n NOT_ALLOWED: 405,\n CONFLICT: 409,\n SERVER_ERROR: 500\n}","stackTrace":"RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: {\n OK: 200,\n CREATED: 201,\n NO_CONTENT: 204,\n REDIRECT: 301,\n BAD_REQUEST: 400,\n UNAUTHORIZED: 401,\n FORBIDDEN: 403,\n NOT_FOUND: 404,\n NOT_ALLOWED: 405,\n CONFLICT: 409,\n SERVER_ERROR: 500\n}\n at new NodeError (node:internal/errors:405:5)\n at ServerResponse.writeHead (node:_http_server:347:11)\n at ServerResponse.writeHead (E:\\Full-Stack-Development\\Backend\\Node\\using-js\\hospital-api\\node_modules\\on-headers\\index.js:44:26)\n at ServerResponse.writeHead (E:\\Full-Stack-Development\\Backend\\Node\\using-js\\hospital-api\\node_modules\\on-headers\\index.js:44:26)\n at ServerResponse._implicitHeader (node:_http_server:338:8)\n at ServerResponse.end (E:\\Full-Stack-Development\\Backend\\Node\\using-js\\hospital-api\\node_modules\\compression\\index.js:103:14)\n at ServerResponse.send (E:\\Full-Stack-Development\\Backend\\Node\\using-js\\hospital-api\\node_modules\\express\\lib\\response.js:232:10)\n at ServerResponse.json (E:\\Full-Stack-Development\\Backend\\Node\\using-js\\hospital-api\\node_modules\\express\\lib\\response.js:278:15)\n at file:///E:/Full-Stack-Development/Backend/Node/using-js/hospital-api/src/api/v1/features/patient/controllers/patient.controller.js:44:36\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","title":"Internal Server Error"},"timeStamp":"Thu Oct 26 2023 02:06:43 GMT+0530 (India Standard Time)"},"service":"server-error-logging"}
{"level":"error","message":{"reqBody":{},"reqUrl":"/api/v1/patients/653975996a0e64376bafefd7/all-reports","resBody":{"message":"Invalid status code: {\n OK: 200,\n CREATED: 201,\n NO_CONTENT: 204,\n REDIRECT: 301,\n BAD_REQUEST: 400,\n UNAUTHORIZED: 401,\n FORBIDDEN: 403,\n NOT_FOUND: 404,\n NOT_ALLOWED: 405,\n CONFLICT: 409,\n SERVER_ERROR: 500\n}","stackTrace":"RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: {\n OK: 200,\n CREATED: 201,\n NO_CONTENT: 204,\n REDIRECT: 301,\n BAD_REQUEST: 400,\n UNAUTHORIZED: 401,\n FORBIDDEN: 403,\n NOT_FOUND: 404,\n NOT_ALLOWED: 405,\n CONFLICT: 409,\n SERVER_ERROR: 500\n}\n at new NodeError (node:internal/errors:405:5)\n at ServerResponse.writeHead (node:_http_server:347:11)\n at ServerResponse.writeHead (E:\\Full-Stack-Development\\Backend\\Node\\using-js\\hospital-api\\node_modules\\on-headers\\index.js:44:26)\n at ServerResponse.writeHead (E:\\Full-Stack-Development\\Backend\\Node\\using-js\\hospital-api\\node_modules\\on-headers\\index.js:44:26)\n at ServerResponse._implicitHeader (node:_http_server:338:8)\n at ServerResponse.end (E:\\Full-Stack-Development\\Backend\\Node\\using-js\\hospital-api\\node_modules\\compression\\index.js:103:14)\n at ServerResponse.send (E:\\Full-Stack-Development\\Backend\\Node\\using-js\\hospital-api\\node_modules\\express\\lib\\response.js:232:10)\n at ServerResponse.json (E:\\Full-Stack-Development\\Backend\\Node\\using-js\\hospital-api\\node_modules\\express\\lib\\response.js:278:15)\n at file:///E:/Full-Stack-Development/Backend/Node/using-js/hospital-api/src/api/v1/features/patient/controllers/patient.controller.js:45:36\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","title":"Internal Server Error"},"timeStamp":"Thu Oct 26 2023 02:07:47 GMT+0530 (India Standard Time)"},"service":"server-error-logging"}