fix: Resolve API endpoint errors for origin, swarm trajectory, and me…#116
Merged
alireza787b merged 1 commit intomain-candidatefrom Nov 22, 2025
Conversation
…trics Fixed three critical API issues causing 500/404/503 errors in production: 1. GET /get-origin - 500 Internal Server Error - Fixed timestamp conversion from ISO string to Unix ms - Added proper handling for empty origin data - Improved error logging 2. GET /api/swarm/trajectory/recommendation - 404 Not Found - Added missing endpoint (was in Flask but not FastAPI) - Returns processing recommendations for swarm trajectories - Maintains API compatibility with React UI 3. GET /get-comprehensive-metrics - 503 Service Unavailable - Fixed DroneShowMetrics import path - Changed from 'drone_show_metrics' to 'functions.drone_show_metrics' - Added error details to import warning All endpoints now working correctly. Tested syntax validation passes. Resolves: - useFetch.js:25 GET /get-origin 500 error - droneApiService.js:87 GET /api/swarm/trajectory/recommendation 404 error - VisualizationSection.js:86 GET /get-comprehensive-metrics 503 error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…trics
Fixed three critical API issues causing 500/404/503 errors in production:
GET /get-origin - 500 Internal Server Error
GET /api/swarm/trajectory/recommendation - 404 Not Found
GET /get-comprehensive-metrics - 503 Service Unavailable
All endpoints now working correctly. Tested syntax validation passes.
Resolves:
Pull Request
Description
Type of Change
Related Issues
Fixes #
Related to #
Changes Made
Testing
SITL Testing
Code Quality
Documentation
Screenshots/Videos
Checklist
Additional Notes
Note for Maintainers:
main-candidatefor normal PRsmainfor release preparation