OnlyOffice conversion api keeps returning -1

646 Views Asked by At

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?

1

There are 1 best solutions below

5
On

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/