unoconv / unoserver

MIT License
495 stars 69 forks source link

Sometimes I get xmlrpc.client.Fault: <Fault 1: "<class 'unoserver.converter.com.sun.star.connection.NoConnectException'>:Connector : couldn't connect to socket (Connection refused) at ./io/source/connector/connector.cxx:118"> #116

Open xlmnxp opened 1 month ago

xlmnxp commented 1 month ago

I'm running unoserver in docker and some times I receive the following error

xmlrpc.client.Fault: <Fault 1: "<class 'unoserver.converter.com.sun.star.connection.NoConnectException'>:Connector : couldn't connect to socket (Connection refused) at ./io/source/connector/connector.cxx:118">

and the conversation failed

regebro commented 1 month ago

I get that if I call the convert client before libreoffice has fully started, which takes a few seconds. Do you get it at other times?

xlmnxp commented 1 month ago

I get that if I call the convert client before libreoffice has fully started, which takes a few seconds. Do you get it at other times?

Is there way to make unoconvert to wait until unoserver be ready or libreoffice fully loaded?

regebro commented 1 month ago

There wasn't before, but with the 2.0 refactor, there may be. Or rather, the server can now make calls, and if they fail, just wait a bit.

xlmnxp commented 3 weeks ago

@regebro is the option available now?