Try the fastest and simplest way to install ONLYOFFICE

ConversionAPI still returns code -1

Suggestions on Document Server Installation/Functionality

ConversionAPI still returns code -1

Postby jabko87 » Wed Aug 15, 2018 2:26 pm

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

Code: Select all
{
    "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:

Code: Select all
<?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?
jabko87
 
Posts: 1
Joined: Wed Aug 15, 2018 2:24 pm

Re: ConversionAPI still returns code -1

Postby Maxim » Mon Aug 20, 2018 1:23 pm

Hello jabko87!
Can I use document that is not stored on docserver and how to generate the key properly?

The key of the document must be generated every time when this document is edited. Document server is not a storage for documents, your documents should be stored at another place with an accessible URL. You should generate that key for a document.
Maxim
 
Posts: 1747
Joined: Tue Oct 11, 2016 2:34 pm


Return to Document Server

Who is online

Users browsing this forum: No registered users and 0 guests