Try the fastest and simplest way to install ONLYOFFICE

Forcesave gives status of 7 and no URL

Forcesave gives status of 7 and no URL

Postby vmckillop » Tue Aug 01, 2017 1:00 am

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
vmckillop
 
Posts: 7
Joined: Tue Aug 01, 2017 12:49 am

Re: Forcesave gives status of 7 and no URL

Postby Maxim » Fri Aug 04, 2017 10:34 am

Hello vmckillop!
Please attach to your post conerter logs. We need to look at them.
Maxim
 
Posts: 1237
Joined: Tue Oct 11, 2016 2:34 pm

Re: Forcesave gives status of 7 and no URL

Postby vmckillop » Mon Aug 07, 2017 1:10 am

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
vmckillop
 
Posts: 7
Joined: Tue Aug 01, 2017 12:49 am

Re: Forcesave gives status of 7 and no URL

Postby Maxim » Mon Aug 07, 2017 7:41 am

Hello vmckillop!
I suppose that you set document key like a whole number but you should set string
Maxim
 
Posts: 1237
Joined: Tue Oct 11, 2016 2:34 pm

Re: Forcesave gives status of 7 and no URL

Postby vmckillop » Mon Aug 07, 2017 11:44 pm

Thanks for pointing that out Maxim, it's now working :)

I'll place extra close attention to the variable types from now on.
vmckillop
 
Posts: 7
Joined: Tue Aug 01, 2017 12:49 am

Re: Forcesave gives status of 7 and no URL

Postby Maxim » Thu Aug 10, 2017 7:13 am

Hello vmckillop!
You are always welcome!
Maxim
 
Posts: 1237
Joined: Tue Oct 11, 2016 2:34 pm


Return to Documents

Who is online

Users browsing this forum: No registered users and 1 guest