You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Bartender Cloud API调用已上传模板打印故障及权限问题排查

Bartender Cloud API 打印请求故障排查与解决方案需求

我已将模板文件上传至Bartender Cloud API,在控制台可右键打印、进入编辑器查看或修改,账户拥有完全权限。使用Postman发送如下请求:

POST https://am1.bartendercloud.com/api/actions?Wait=30s
Content-Type: application/json

{
    "PrintBTWAction": {
        "Document": "librarian://Main/Templates/TestAccessoryTemplate.btw",
        "Printer": "PDF",
        "Name": "Test Sample Print",
        "Description": "zzz",
        "SaveAfterPrint": false,
        "QueueAndContinue": false,
        "VerifyPrintJobIsComplete": true,
        "ReturnPrintSummary": true
    }
}

返回HTTP状态码200,但响应状态为Faulted:

{
    "Id": "4261c758-31a0-438f-a7e8-9c5810757a1d",
    "Status": "Faulted",
    "StatusUrl": "https://am1.bartendercloud.com:443/api/actions/4261c758-31a0-438f-a7e8-9c5810757a1d"
}

目前仅使用Cloud API,未部署云服务器、桌面代理等,且希望避免额外安装程序。Document属性应为服务器端文件路径,已尝试以下操作:

  • 使用查询参数file=librarian://Main/Templates/TestAccessoryTemplate.btw,提示找不到文件,但该路径与「Manage Files」区域显示一致;
  • 在请求体中填写不存在的文件,得到相同错误;
  • 已知默认Cloud API用户拥有Librarian的Main和Temp空间,假设Main是「Manage Console」视图的根目录,将文件移至该根目录仍无效;
  • 尝试向Main空间上传文件或列出空间内文件时,即便使用全权限用户仍出现RBAC错误。

需求:实现标签的程序化打印,网页控制台可正常操作,但API调用始终失败。若必须使用Librarian,希望了解无需额外安装的访问方法,或实现每次打印请求上传.btw文件的方案。

内容的提问来源于stack exchange,提问作者Woodsman

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.05 10:52:55