Fix api timeout (#6401)

This commit is contained in:
martmull
2024-07-25 08:38:05 +02:00
committed by GitHub
parent 082d55beac
commit 7c6ca0e841
4 changed files with 6 additions and 2 deletions

View File

@ -643,7 +643,9 @@ export class WorkspaceQueryRunnerService {
);
} catch (error) {
if (isQueryTimeoutError(error)) {
throw new RequestTimeoutException(error.message);
throw new RequestTimeoutException(
'The SQL request took too long to process, resulting in a query read timeout. To resolve this issue, consider modifying your query by reducing the depth of relationships or limiting the number of records being fetched.',
);
}
throw error;