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

error in check_health for closed session #3410

Open
2 tasks done
millerj97 opened this issue Oct 21, 2024 · 0 comments
Open
2 tasks done

error in check_health for closed session #3410

millerj97 opened this issue Oct 21, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@millerj97
Copy link
Collaborator

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

calling check_health on a session which has been exited causes the following error;

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".build/lib/python3.10/site-packages/ansys/fluent/core/services/health_check.py", line 62, in check_health
    response = self._stub.Check(request, metadata=self._metadata)
  File ".build/lib/python3.10/site-packages/grpc/_interceptor.py", line 277, in __call__
    response, ignored_call = self._with_call(
  File ".build/lib/python3.10/site-packages/grpc/_interceptor.py", line 329, in _with_call
    call = self._interceptor.intercept_unary_unary(
  File ".build/lib/python3.10/site-packages/ansys/fluent/core/services/interceptors.py", line 122, in intercept_unary_unary
    return self._intercept_call(continuation, client_call_details, request)
  File "/.build/lib/python3.10/site-packages/ansys/fluent/core/services/interceptors.py", line 110, in _intercept_call
    ex = RuntimeError(grpc_ex.details())
AttributeError: 'ValueError' object has no attribute 'details'

calling check_health() on a pyfluent session that never existed gives;

>>> no_session._fluent_connection.health_check.check_health()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'no_session' is not defined

📝 Steps to reproduce

run following commands;

import ansys.fluent.core as pyfluent
solver = pyfluent.launch_fluent()
solver._fluent_connection.health_check.check_health()

solver.exit()
solver._fluent_connection.health_check.check_health()

💻 Which operating system are you using?

Linux

📀 Which ANSYS version are you using?

251

🐍 Which Python version are you using?

3.10

📦 Installed packages

about-time==4.2.1
alive-progress==3.1.5
ansys-api-fluent==0.3.28
ansys-api-platform-instancemanagement==1.1.0
ansys-api-tools-filetransfer==0.1.0
ansys-fluent-core==0.26.1
ansys-platform-instancemanagement==1.1.2
ansys-tools-filetransfer==0.1.0
ansys-units==0.3.2
beartype==0.19.0
certifi==2024.8.30
charset-normalizer==3.4.0
click==8.1.7
docker==7.1.0
grapheme==0.6.0
grpcio==1.67.0
grpcio-health-checking==1.62.3
idna==3.10
importlib_metadata==8.5.0
joblib==1.4.2
lxml==5.3.0
nltk==3.9.1
numpy==1.26.4
pandas==2.2.3
platformdirs==4.3.6
protobuf==4.25.5
psutil==6.1.0
python-dateutil==2.9.0.post0
pytz==2024.2
PyYAML==6.0.2
regex==2024.9.11
requests==2.32.3
six==1.16.0
tqdm==4.66.5
tzdata==2024.2
urllib3==2.2.3
zipp==3.20.2
@millerj97 millerj97 added the bug Something isn't working label Oct 21, 2024
@ansys ansys deleted a comment Oct 21, 2024
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

No branches or pull requests

2 participants