【问题标题】:Context deadline exceeded- goteberg api (/forms/libreoffice/convert)超出上下文截止日期-goteberg api (/forms/libreoffice/convert)
【发布时间】:2022-07-11 20:30:27
【问题描述】:

我正在尝试使用 gotenberg api 将 ms-office 文件转换为 pdf。对于某些文件,我收到 unoconv PDF 上下文截止日期超过 503 状态。我已将读取、写入和处理超时增加到 60 秒。我该如何解决这个问题?转换文件所需的最长时间是多少?一个 gotenberg 实例可以处理的最大请求是多少?

【问题讨论】:

    标签: java libreoffice pdf-conversion unoconv gotenberg


    【解决方案1】:

    尝试通过传递请求的参数waitTimeout 来增加超时 https://gotenberg.dev/docs/6.x/timeout

    curl --request POST \
         --url http://localhost:3000/convert/html \
         --header 'Content-Type: multipart/form-data' \
         --form files=@index.html \
         --form waitTimeout=300
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多