HASH icon indicating copy to clipboard operation
HASH copied to clipboard

Error when using file logging

Open tommy-ng0 opened this issue 1 year ago • 0 comments

When I use file logging, I see this error:

{"level":"error","message":"HTTP -> 500 error: Cannot read properties of null (reading 'appsec')","stack":"TypeError: Cannot read properties of null (reading 'appsec')\n    at exp.logger (/usr/src/app/libs/init.js:81:24)\n    at /usr/src/app/libs/simulator.js:130:27\n    at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)\n    at next (/usr/src/app/node_modules/express/lib/router/route.js:149:13)\n    at Route.dispatch (/usr/src/app/node_modules/express/lib/router/route.js:119:3)\n    at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)\n    at /usr/src/app/node_modules/express/lib/router/index.js:284:15\n    at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:346:12)\n    at next (/usr/src/app/node_modules/express/lib/router/index.js:280:10)\n    at /usr/src/app/libs/honeytraps/cookie.js:17:13"}

doesn't appear in console logging type.

tommy-ng0 avatar Dec 23 '24 01:12 tommy-ng0