简体   繁体   中英

OnlyOffice conversion api keeps returning -1

I am trying to call my OpenOffice conversion API with following data:

{
    "async": false,
    "filetype": "docx",
    "key": "Khirz6zgfTPdfd7",
    "outputtype": "pdf",
    "title": "Example Document Title.docx",
    "url": "https://calibre-ebook.com/downloads/demos/demo.docx"
}

I am not certain about key property value, I used Khirz6zgfTPdfd7 which is also used in their example on https://api.onlyoffice.com/editors/conversionapi ; the document is also not the one stored on docserver.

The response I retrieve is:

<?xml version="1.0" encoding="utf-8"?><FileResult><Error>-1</Error></FileResult>

when means Unknown error.

I suppose the problem might be either in key or document URL. Can I use document that is not stored on docserver and how to generate the key properly?

Or do you think I miss something else?

I am trying to call my OpenOffice conversion API with following data

Seems to be ok, please send log files from /onlyoffice/documentserver/ converter/ and /onlyoffice/documentserver/ docservice/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM