【问题标题】:jsreport hosting on in-house Windows server not working properly内部 Windows 服务器上的 jsreport 托管无法正常工作
【发布时间】:2019-01-18 09:59:28
【问题描述】:

我最近在我的 Windows 服务器上部署了 jsreport。 我的系统配置是:

  • Windows 服务器 2012 R2 64 位
  • IIS 8.5
  • 用于 7.X 64 位的 iisnode

在使用 jsreport-browser-client-dist 请求生成报告时,我收到“400 Bad Request”作为响应。当我将相同的请求重定向到 jsreportonline 时,它​​工作得很好。

同样在服务器上部署 jsreport 的过程中,出于安全考虑,安全工具已经删除了以下文件:

jsreport\node_modules\winser-with-api\bin\nssm.exe

jsreport 请求:

{
  "template": {
    "content": "<div>Hello</div>",
    "engine": "none",
    "recipe": "phantom-pdf",
    "phantom": {
      "format": "A3",
      "footerHeight": "140px",
      "footer": "<div>Footer</div>",
      "printDelay": 1000
    }
  }
}

我是 jsreport 的新手。谁能指出我正确的方向或建议我在这里做错了什么?

【问题讨论】:

    标签: windows-server-2012 jsreport


    【解决方案1】:

    我意识到这是一篇旧帖子,但希望这对某人有所帮助。每当生成“错误请求”错误时,jsreport 服务器似乎都需要重新启动。我们一直在试用这个工具,它对大多数事情都很好,但有这样的怪癖。这意味着如果您收到该错误,然后修复导致该错误的错误,您将继续收到该错误,直到您重新启动服务器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-20
      • 2021-03-10
      • 2017-04-30
      • 1970-01-01
      • 2012-07-19
      相关资源
      最近更新 更多