I try to use the document conversion API with a document uploaded to OO server.
So I upload my document with the api to a given common folder. It’s working fine. I find this document in the portail and I can edit it with the editors.
Now, I try to use the conversion API to convert it to pdf (docx to pdf). Whenever I try to use the api with a document store on the only office server, it fails with an “error -4”.
If i use a url outside of OnlyOffice but on our internal servers with a document, it work without any error…
the url given by the upload api is: http://onlyoffice.internal.srv/Products/Files/httphandlers/filehandler.ashx?action=download&fileid=71
and here is the JSON I send to the conversion service
{
"async":false,
"filetype":"docx",
"key":"5cb6191b8c8442",
"outputtype":"pdf",
"title":"DocAFaireEnPDF.docx",
"url":"http://onlyoffice.internal.srv/Products/Files/httphandlers/filehandler.ashx?action=download&fileid=71"
}
What I’m missing to make it work from a file stored in the OnlyOffice server ?