shemin 发表于 2021-4-1 09:36:36

office在线协作应用

office 在线应用合作打开文档时前端弹窗https://www.o2oa.net:40020/x_file_assemble_control/jaxrs/file/90146636-c79d-4854-819e-34d7436e60bf/download/stream 点击后文档可以正常编辑保存。使用的onlyoffice为本地部署,officesettings.json 文件配置如下:
{"storageFolder":"file:///download/o2server/local/repository/storage/onlyoffice","storageFolderTemplate":"file:///download/o2server/local/repository/storage/onlyoffice/temp","storageFolderIndex":"file:///download/o2server/local/repository/storage/onlyoffice/index","storageFolderMark":"file:///download/o2server/local/repository/storage/onlyoffice/mark","docbuilderEXEPath":"","filesizeMax":"5242880","timeout":"120000","docserviceViewedDocs":".pdf|.djvu|.xps","docserviceEditedDocs":".docx|.xlsx|.csv|.pptx|.txt","docserviceConvertDocs":".docm|.dotx|.dotm|.dot|.doc|.odt|.fodt|.ott|.xlsm|.xltx|.xltm|.xlt|.xls|.ods|.fods|.ots|.pptm|.ppt|.ppsx|.ppsm|.pps|.potx|.potm|.pot|.odp|.fodp|.otp|.rtf|.mht|.html|.htm|.epub","docserviceConverter":"http://192.168.0.14:155/ConvertService.ashx","docserviceTempstorage":"http://192.168.0.14:155/ResourceService.ashx","docserviceApi":"http://192.168.0.14:155/web-apps/apps/api/documents/api.js","docservicePreloader":"http://192.168.0.14:155/web-apps/apps/api/documents/cache-scripts.html","secret":"secreto2oa","header":"Authorization","ipWhiteList":"","callbackUrl":"http://192.168.0.14:20030/x_program_center/jaxrs/invoke/cloudDocumentSrv/execute","gobackUrl":"http://192.168.0.14/x_desktop/index.html","rmi":"false","rmiPort":"2099","searchIndexCreate":"true","searchRangeCount":"12","searchReturnCount":"100"}

shemin 发表于 2021-4-1 11:52:53

nodeJS - postData error: docId = -751066235;url = http://192.168.0.14:20030/x_program_center/jaxrs/invoke/cloudDocumentSrv/execute;data = {"key":"-751066235","status":1,"users":["SheMin"],"actions":[{"type":1,"userid":"SheMin"}]}
Error: Error response: statusCode:500; headers:{"access-control-allow-origin":"*","access-control-allow-methods":"GET, POST, OPTIONS, PUT, DELETE, HEAD, TRACE","access-control-allow-headers":"x-requested-with, x-request, x-token, c-token, Content-Type, Content-Length, x-cipher, x-client, x-debugger, Authorization, P-User-Id, P-Request-Id, P-Page-Id","access-control-allow-credentials":"true","access-control-expose-headers":"x-token, c-token","access-control-max-age":"86400","content-type":"application/json;charset=utf-8","content-length":"254"}; body:
{
"type": "error",
"message": "调用接口运行失败,名称: office在线协作.",
"date": "2021-04-01 11:28:18",
"spent": 66,
"size": -1,
"count": 0,
"position": 0,
"prompt": "com.x.program.center.jaxrs.invoke.ExceptionExecuteError"
}
    at Request._callback (/snapshot/server/build/server/Common/sources/utils.js:0:0)
    at Request.init.self.callback (/snapshot/server/build/server/Common/node_modules/request/request.js:185:22)
    at Request.emit (events.js:198:13)
    at Request.<anonymous> (/snapshot/server/build/server/Common/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:198:13)
    at IncomingMessage.<anonymous> (/snapshot/server/build/server/Common/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:286:20)
    at IncomingMessage.emit (events.js:203:15)
    at endReadableNT (_stream_readable.js:1143:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

这是onlyoffice报错

论坛管理员 发表于 2021-4-2 13:48:08

您好:
callbackUrl 是o2oa服务器地址。请问您配置对吗
请对照https://www.o2oa.net/course/xd4qyh.html?h=onlyOff   检查一下您的配置

shemin 发表于 2021-4-2 14:09:57

https://www.o2oa.net:40020/x_file_assemble_control/jaxrs/file/dc22b260-36a6-4dad-a60a-81e4cab6a7f1/download/streamcallback配置的为该地址 ,192.168.0.14 为本地架设的o2oa 服务器地址

论坛管理员 发表于 2021-4-6 13:49:16

你是否 按照规范编译过数据库。https://www.o2oa.net:40020/x_file_assemble_control/jaxrs/file/99733723-7b3b-4303-89a1-7ec77baa164c/download/stream

shemin 发表于 2021-4-6 18:06:11

已按规范编译过数据库,现在是文档能够正常编辑保存,就是打开时前端会弹窗报错提示这份文件无法保存

论坛管理员 发表于 2021-4-7 10:03:59

1.理论上您安装我们的规范,一步步操作不会有问题!
2.您可能少了那个部署,建议您根据文档仔细检查!
3.如果您有需要,可以购买我们的技术支撑服务,我们技术人员可以远程协助解决问题!
页: [1]
查看完整版本: office在线协作应用