Page 1 of 1

Forcesave gives status of 7 and no URL

PostPosted: Tue Aug 01, 2017 1:00 am
by vmckillop
Hi,

I'm trying to configure my application so that when a user clicks a button it will trigger the command service to forcesave the file and the callbackURL will receive the forcesave request with a url to retrieve the saved document however when triggering the force save through the command service the callbackURL receives the following:

{"key":4147185118,"status":7,"users":[],"userdata":"sample userdata","lastsave":"2017-08-01T00:43:03.235Z","forcesavetype":0}

I note in the documentation it says a status of "7 - error has occurred while force saving the document" however I can't find anything in the logs that indicate what the error could be.

Some direction on next steps would be appreciated.

Thanks,
Vaughan

Re: Forcesave gives status of 7 and no URL

PostPosted: Fri Aug 04, 2017 10:34 am
by Maxim
Hello vmckillop!
Please attach to your post conerter logs. We need to look at them.

Re: Forcesave gives status of 7 and no URL

PostPosted: Mon Aug 07, 2017 1:10 am
by vmckillop
Thanks Maxim,

I found out.log in /var/logs/onlyoffice/documentserver/converter/out.log. When i trigger the command service it logs:

[2017-08-07 01:07:12.857] [ERROR] nodeJS - TypeError: strPath.replace is not a function
at getStoragePath (/var/www/onlyoffice/documentserver/server/Common/sources/storage-base.js:17:18)
at Object.exports.listObjects (/var/www/onlyoffice/documentserver/server/Common/sources/storage-base.js:26:30)
at downloadFileFromStorage (/var/www/onlyoffice/documentserver/server/FileConverter/sources/converter.js:211:28)
at next (native)
at ExecuteTask (/var/www/onlyoffice/documentserver/server/FileConverter/sources/converter.js:470:12)
at next (native)
at /var/www/onlyoffice/documentserver/server/FileConverter/sources/converter.js:529:22
at next (native)
at onFulfilled (/var/www/onlyoffice/documentserver/server/FileConverter/node_modules/co/index.js:65:19)
at /var/www/onlyoffice/documentserver/server/FileConverter/node_modules/co/index.js:54:5

Re: Forcesave gives status of 7 and no URL

PostPosted: Mon Aug 07, 2017 7:41 am
by Maxim
Hello vmckillop!
I suppose that you set document key like a whole number but you should set string

Re: Forcesave gives status of 7 and no URL

PostPosted: Mon Aug 07, 2017 11:44 pm
by vmckillop
Thanks for pointing that out Maxim, it's now working :)

I'll place extra close attention to the variable types from now on.

Re: Forcesave gives status of 7 and no URL

PostPosted: Thu Aug 10, 2017 7:13 am
by Maxim
Hello vmckillop!
You are always welcome!