unoconv / unoserver

MIT License
596 stars 81 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

Closed xlmnxp closed 4 months ago

xlmnxp commented 6 months 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 6 months 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 5 months 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 5 months 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 5 months ago

@regebro is the option available now?

regebro commented 4 months ago

It is now.