Files
twenty_crm/packages/twenty-server/src/engine/utils/query-timeout.util.ts
Thomas Trompette c60a3e49cd Catch query timeout exceptions (#5680)
Query read timeouts happen when a remote server is not available. It
breaks:
- the remote server show page
- the record table page of imported remote tables

This PR will catch the exception so it does not go to Sentry in both
cases.

Also did 2 renaming.
2024-05-31 10:39:35 +02:00

4 lines
113 B
TypeScript

export const isQueryTimeoutError = (error: Error) => {
return error.message.includes('Query read timeout');
};