Optimise db query. Add more error detail.
Tests / backend-test (pull_request) Successful in 6s
Tests / frontend-test (pull_request) Failing after 7s
Tests / e2e-test (pull_request) Failing after 1m31s

This commit is contained in:
(jenkins)
2026-04-17 00:34:55 +01:00
parent 411d10bbc6
commit 8890e64d0e
3 changed files with 31 additions and 24 deletions
+2 -1
View File
@@ -751,7 +751,8 @@ const APP = () => {
renderLineOnMap(response.data.data);
} catch (error) {
console.error('Error fetching line of sight:', error);
setApiError('Failed to fetch route. Please try again.');
const msg = error.response?.data?.error || error.message || 'Failed to fetch route.';
setApiError(`Error: ${msg}`);
} finally {
setLoading(false);
// Reset flight progress for a new line calculation
+1 -1
View File
@@ -4,7 +4,7 @@ const API_BASE_URL = import.meta.env.VITE_API_URL || '/api';
const api = axios.create({
baseURL: API_BASE_URL,
timeout: 10000,
timeout: 30000,
headers: {
'Content-Type': 'application/json'
}