开发者社区 > 云原生 > 正文

请问,定时函数报错,什么原因?

请问,定时函数报错,什么原因? 2022-07-04T01:42:40.055Z 489a1994-8d49-49f8-9694-a6a2cace7c2b [error] TypeError: Cannot read property 'startsWith' of undefined at (/code/node_modules/@midwayjs/static-file/dist/middleware/static.middleware.js:29:56) at some (null:null:null) at rangeMiddleware (/code/node_modules/@midwayjs/static-file/dist/middleware/static.middleware.js:29:37) at dispatch (/code/node_modules/@midwayjs/core/dist/service/middlewareService.js:102:48) at composeFn (/code/node_modules/@midwayjs/core/dist/service/middlewareService.js:76:20) at dispatch (/code/node_modules/@midwayjs/core/dist/service/middlewareService.js:102:48) at (/code/node_modules/@midwayjs/core/dist/baseFramework.js:239:42) at dispatch (/code/node_modules/@midwayjs/core/dist/service/middlewareService.js:102:48) at composeFn (/code/node_modules/@midwayjs/core/dist/service/middlewareService.js:76:20) at dispatch (/code/node_modules/@midwayjs/core/dist/service/middlewareService.js:102:48) 2022-07-04T01:42:40.055Z 489a1994-8d49-49f8-9694-a6a2cace7c2b [error] {"errorMessage":"Internal Server Error","errorType":"Error","stackTrace":["Error: Internal Server Error"," at (/code/node_modules/@midwayjs/serverless-fc-starter/dist/runtime.js:239:27)"," at invokeHandlerWrapper (/code/node_modules/@midwayjs/runtime-engine/dist/lightRuntime.js:19:28)"]} FC Invoke End RequestId: 489a1994-8d49-49f8-9694-a6a2cace7c2b, Error: Handled function error

展开
收起
云上静思 2022-07-04 21:00:50 509 0
1 条回答
写回答
取消 提交回答
  • 是midway的问题,引入static插件后定时任务就会报错。

    此答案来自钉钉群“阿里函数计算官网客户”

    2022-07-05 12:51:11
    赞同 展开评论 打赏
问答分类:
问答地址:

阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。

热门讨论

热门文章

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载