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

Fix: Connectivity errors crashed the endpoint #529

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

hoh
Copy link
Member

@hoh hoh commented Feb 2, 2024

Problem:
The endpoint /status/check/host should return a data structure with details about the networking that works or does not.

When IPv6 connectivity failed due to a connection error, the endpoint crashed with an error 500 instead of returning the expected value false for that type of connectivity.

Solution: Wrap connectivity errors with a try-catch.

Copy link

github-actions bot commented Feb 2, 2024

Failed to retrieve llama text: HTTPConnectionPool(host='46.255.204.205', port=5100): Max retries exceeded with url: /completion (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fcb477f45d0>: Failed to establish a new connection: [Errno 111] Connection refused'))

Problem:
The endpoint `/status/check/host` should return a data structure with details about the networking that works or does not.

When IPv6 connectivity failed due to a connection error, the endpoint crashed with an error 500 instead of returning the expected value `false` for that type of connectivity.

Solution: Wrap connectivity errors with a try-catch.
@MHHukiewitz MHHukiewitz merged commit f46cbaa into main Feb 2, 2024
18 checks passed
@MHHukiewitz MHHukiewitz deleted the hoh-fix-ip-connectivity-crash branch February 2, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants