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

Problem: status_check_fastapi endpoint raising eror #676

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/aleph/vm/orchestrator/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,6 @@ async def check_internet(session: ClientSession, vm_id: ItemHash) -> bool:
try:
response: dict = await get_json_from_vm(session, vm_id, "/internet")

if "headers" not in response:
raise ValueError("The server cannot connect to Internet")

# The HTTP Header "Server" must always be present in the result.
if "Server" not in response["headers"]:
raise ValueError("Server header not found in the result.")

# The diagnostic VM returns HTTP 200 with {"result": False} when cannot connect to the internet.
# else it forwards the return code if its own test endpoint.
return response.get("result") == HTTPOk.status_code
Expand Down
Loading