Parsr Cleanerjs在docker镜像v1.2.2和v1.2.1上崩溃,

0yycz8jy  于 5个月前  发布在  Docker
关注(0)|答案(1)|浏览(94)

摘要

使用默认配置的崩溃模块Cleaner.js发送PDF。

重现步骤

  1. 使用curl发送多页PDF
  2. 检查日志
  3. 查看错误
[2021-01-22T11:06:41] ERROR (parsr-api/6 on parsr-bb9d57c85-bxwmb): /opt/app-root/src/dist/src/Cleaner.js:201
            throw new Error("Module " + moduleClass.moduleName + " has unresolved dependencies (" + unresolvedStr + ").");
            ^

Error: Module lines-to-paragraph has unresolved dependencies (words-to-line-new).
    at Cleaner.checkDependenciesAndAdd (/opt/app-root/src/dist/src/Cleaner.js:201:19)
    at /opt/app-root/src/dist/src/Cleaner.js:136:19
    at Array.forEach (<anonymous>)
    at Cleaner.parseLatestConfig (/opt/app-root/src/dist/src/Cleaner.js:123:16)
    at new Cleaner (/opt/app-root/src/dist/src/Cleaner.js:88:18)
    at main (/opt/app-root/src/dist/bin/index.js:72:19)
    at Object.<anonymous> (/opt/app-root/src/dist/bin/index.js:204:1)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)

[2021-01-22T11:06:41] INFO  (parsr-api/6 on parsr-bb9d57c85-bxwmb): Process exited

预期行为

无崩溃

环境

  • 参考提交/版本:v1.2.2 & v1.2.1
  • 其他平台详情:docker
mbyulnm0

mbyulnm01#

这种情况发生是因为一些旧的配置被缓存了。我想知道当某个模块没有配置时,是否应该总是有一个回退选项,而不是崩溃。

相关问题