Skip to content

Commit

Permalink
Improve timeout message
Browse files Browse the repository at this point in the history
  • Loading branch information
martmull committed Jul 25, 2024
1 parent fb0a083 commit 3bab4d8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3bab4d8

Please sign in to comment.