我无法识别下面显示的错误的根本原因。运行节点服务器时经常会出现错误。一旦我重新启动节点服务器,应用程序就会正常运行而没有任何问题。
1。我想知道是什么导致出现此错误
2。开发人员可以解决哪些问题
错误:
SyntaxError: Unexpected token %
at EventEmitter.Pino (/code/node_modules/pino/pino.js:144:19)
at EventEmitter.child (/code/node_modules/pino/pino.js:284:10)
at loggingMiddleware (/code/node_modules/pino-http/logger.js:45:32)
at Layer.handle [as handle_request] (/code/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/code/node_modules/express/lib/router/index.js:317:13)
at /code/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/code/node_modules/express/lib/router/index.js:335:12)
at next (/code/node_modules/express/lib/router/index.js:275:10)
at /code/node_modules/express-boom/index.js:28:5
at Layer.handle [as handle_request] (/code/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/code/node_modules/express/lib/router/index.js:317:13)
at /code/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/code/node_modules/express/lib/router/index.js:335:12)
at next (/code/node_modules/express/lib/router/index.js:275:10)
at expressInit (/code/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/code/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/code/node_modules/express/lib/router/index.js:317:13)
at /code/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/code/node_modules/express/lib/router/index.js:335:12)
at next (/code/node_modules/express/lib/router/index.js:275:10)
at query (/code/node_modules/express/lib/middleware/query.js:45:5)
at Layer.handle [as handle_request] (/code/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/code/node_modules/express/lib/router/index.js:317:13)
at /code/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/code/node_modules/express/lib/router/index.js:335:12)
at next (/code/node_modules/express/lib/router/index.js:275:10)
at Function.handle (/code/node_modules/express/lib/router/index.js:174:3)
at EventEmitter.handle (/code/node_modules/express/lib/application.js:174:10)
at Server.app (/code/node_modules/express/lib/express.js:39:9)
at emitTwo (events.js:106:13)
at Server.emit (events.js:191:7)
at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:546:12)
at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)