You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checkout of 7599ccf, client demo fails to find time service:
D:\\rpyc\demos\time>client.py
Traceback (most recent call last):
File "D:\\rpyc\demos\time\client.py", line 4, in <module>
c = rpyc.connect_by_service("TIME")
File "D:\\rpyc\demos\time\rpyc\utils\factory.py", line 211, in connect_by_service
host, port = discover(service_name, host = host)[0]
File "D:\\rpyc\demos\time\rpyc\utils\factory.py", line 192, in discover
raise DiscoveryError("no servers exposing %r were found" % (service_name,))
rpyc.utils.factory.DiscoveryError: no servers exposing 'TIME' were found
If the server and client is modified to specify a port and client does not use service name, demo works fine:
from rpyc.utils.server import ThreadedServer
from time_service import TimeService
if __name__ == "__main__":
#s = ThreadedServer(TimeService)
s = ThreadedServer(TimeService, port=1234)
s.start()
client:
import rpyc
#c = rpyc.connect_by_service("TIME")
c = rpyc.connect('localhost', 1234)
print( "server's time is", c.root.get_time())
The text was updated successfully, but these errors were encountered:
Checkout of 7599ccf, client demo fails to find time service:
If the server and client is modified to specify a port and client does not use service name, demo works fine:
client:
The text was updated successfully, but these errors were encountered: