Skip to content

Commit 254f799

Browse files
Update apps/sim/tools/tinybird/query.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 0f686c8 commit 254f799

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/sim/tools/tinybird/query.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ export const queryTool: ToolConfig<TinybirdQueryParams, TinybirdQueryResponse> =
7878
const errorData = JSON.parse(responseText)
7979
errorMessage = errorData.error?.message || errorData.error || errorMessage
8080
} catch {
81-
// If not JSON, use raw text
82-
errorMessage = responseText || errorMessage
81+
// If not JSON, use raw text (truncated if too long)
82+
errorMessage = responseText ? responseText.substring(0, 500) : errorMessage
8383
}
8484
logger.error('Failed to execute Tinybird query', {
8585
status: response.status,

0 commit comments

Comments
 (0)