Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handshake is not printing inteligible error message #210

Closed
andre-senna opened this issue Apr 1, 2024 · 0 comments · Fixed by #233
Closed

Handshake is not printing inteligible error message #210

andre-senna opened this issue Apr 1, 2024 · 0 comments · Fixed by #233
Assignees
Labels
bug Something isn't working

Comments

@andre-senna
Copy link
Contributor

I tested it deploying an OpenFaas with an old version:

senna@dl:~$ das-cli faas start --version v1.11.0
Redis is running on port 20123
MongoDB is running on port 20124
Starting OpenFaaS...
You are running the version 'v1.11.0' of the function.
OpenFaaS running on port 8080

And making a query with the recent lib version:

[ninjato] ~/Downloads > check_libs.sh 
hyperon-das-atomdb
  INSTALLED: 0.6.1
  LATEST:    0.6.1
hyperon-das
  INSTALLED: 0.7.2
  LATEST:    0.7.2
[ninjato] ~/Downloads > python3 test_fb_das.py 
Traceback (most recent call last):
  File "/home/senna/Downloads/test_fb_das.py", line 7, in <module>
    das = DistributedAtomSpace(query_engine='remote', host=host, port=port)
  File "/home/senna/.local/lib/python3.10/site-packages/hyperon_das/das.py", line 45, in __init__
    self.query_engine = RemoteQueryEngine(self.backend, self.system_parameters, kwargs)
  File "/home/senna/.local/lib/python3.10/site-packages/hyperon_das/query_engines.py", line 401, in __init__
    self.remote_das = FunctionsClient(self.host, self.port)
  File "/home/senna/.local/lib/python3.10/site-packages/hyperon_das/client.py", line 18, in __init__
    self.url = connect_to_server(host, port)
  File "/home/senna/.local/lib/python3.10/site-packages/hyperon_das/decorators.py", line 45, in wrapper
    raise ConnectionError(message)
hyperon_das.exceptions.ConnectionError: ('Failed to connect to remote Das 100.67.47.42:8080 - attempts:5 - time_attempted: 4.911945104598999', '')

Here's the beginning of the test python file used above:

[ninjato] ~/Downloads > cat test_fb_das.py 
from hyperon_das import DistributedAtomSpace
import sys

host = '100.67.47.42'
port = '8080'

das = DistributedAtomSpace(query_engine='remote', host=host, port=port)
@andre-senna andre-senna added the bug Something isn't working label Apr 1, 2024
marcocapozzoli added a commit that referenced this issue Apr 8, 2024
[#210] Improve message error when connecting to the server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants