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 500 Error Response in /ping Endpoint #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

plural-copilot[bot]
Copy link

@plural-copilot plural-copilot bot commented Apr 2, 2025

Summary

This pull request addresses an issue with the /ping endpoint in the FastAPI application which causes predictable 500 Internal Server Error responses when the UNIX timestamp is divisible by 3. The code modification proposed will ensure the endpoint reliably returns a successful response without raising errors.

Changes Made

  • Modified the /ping endpoint to remove the condition that raises an exception.

Rationale

By removing the behavior that generates internal server errors, we improve the reliability of the service and ensure a consistent response from the /ping endpoint, thus reducing false alerts related to high error rates. This change will stabilize operations and should resolve the current alert situation.

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.

1 participant