You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
While typing a search query, the UI "crashed" and was replaced with the error message below.
To Reproduce
Steps to reproduce the behavior:
Open a tracing project
Search for "" in input.value and span.k
Note that entire UI is replaced with an error screen
Expected behavior
Other invalid queries outline the box in red. It seems like that should be the expected case here as well.
Screenshots
Environment (please complete the following information):
OS: macOS
Browser: Chrome
Version: 7.0.1, self-hosted, w/ postgres
Additional context
Error fetching GraphQL query 'TracesTableQuery' with variables '{"after":null,"filterCondition":"\"\" in input.value and span.k","first":50,"sort":{"col":"startTime","dir":"desc"},"timeRange":{"start":"2024-12-13T17:00:00.000Z","end":"2025-12-20T17:00:00.000Z"},"id":"UHJvamVjdDo0"}': [{"message":"(sqlalchemy.dialects.postgresql.asyncpg.ProgrammingError) <class 'asyncpg.exceptions.DatatypeMismatchError'>: argument of AND must be type boolean, not type jsonb\n[SQL: SELECT traces.id, traces.trace_id, spans.id AS id_1, spans.trace_rowid, spans.span_id, spans.parent_id, spans.name, spans.span_kind, spans.start_time, spans.end_time, spans.attributes, spans.events, spans.status_code, spans.status_message, spans.cumulative_error_count, spans.cumulative_llm_token_count_prompt, spans.cumulative_llm_token_count_completion, spans.llm_token_count_prompt, spans.llm_token_count_completion, spans.start_time AS \"f{self.name}_span_sort_column\" \nFROM spans JOIN traces ON traces.id = spans.trace_rowid LEFT OUTER JOIN (SELECT spans.span_id AS span_id \nFROM spans) AS anon_1 ON spans.parent_id = anon_1.span_id \nWHERE traces.project_rowid = $1::INTEGER AND spans.start_time >= $2::TIMESTAMP WITH TIME ZONE AND spans.start_time < $3::TIMESTAMP WITH TIME ZONE AND anon_1.span_id IS NULL AND strpos(CAST((spans.attributes #>> $4) AS VARCHAR), $5::VARCHAR) > $6::INTEGER AND (spans.attributes #> $7) ORDER BY \"f{self.name}_span_sort_column\" DESC NULLS LAST, spans.id DESC \n LIMIT $8::INTEGER]\n[parameters: (4, datetime.datetime(2024, 12, 13, 17, 0, tzinfo=datetime.timezone.utc), datetime.datetime(2025, 12, 20, 17, 0, tzinfo=datetime.timezone.utc), ['input', 'value'], '', 0, ['span', 'k'], 51)]\n(Background on this error at: https://sqlalche.me/e/20/f405)","locations":[{"line":24,"column":3}],"path":["node","rootSpans"]}]
The text was updated successfully, but these errors were encountered:
Describe the bug
While typing a search query, the UI "crashed" and was replaced with the error message below.
To Reproduce
Steps to reproduce the behavior:
"" in input.value and span.k
Expected behavior
Other invalid queries outline the box in red. It seems like that should be the expected case here as well.
Screenshots
Environment (please complete the following information):
Additional context
Error fetching GraphQL query 'TracesTableQuery' with variables '{"after":null,"filterCondition":"\"\" in input.value and span.k","first":50,"sort":{"col":"startTime","dir":"desc"},"timeRange":{"start":"2024-12-13T17:00:00.000Z","end":"2025-12-20T17:00:00.000Z"},"id":"UHJvamVjdDo0"}': [{"message":"(sqlalchemy.dialects.postgresql.asyncpg.ProgrammingError) <class 'asyncpg.exceptions.DatatypeMismatchError'>: argument of AND must be type boolean, not type jsonb\n[SQL: SELECT traces.id, traces.trace_id, spans.id AS id_1, spans.trace_rowid, spans.span_id, spans.parent_id, spans.name, spans.span_kind, spans.start_time, spans.end_time, spans.attributes, spans.events, spans.status_code, spans.status_message, spans.cumulative_error_count, spans.cumulative_llm_token_count_prompt, spans.cumulative_llm_token_count_completion, spans.llm_token_count_prompt, spans.llm_token_count_completion, spans.start_time AS \"f{self.name}_span_sort_column\" \nFROM spans JOIN traces ON traces.id = spans.trace_rowid LEFT OUTER JOIN (SELECT spans.span_id AS span_id \nFROM spans) AS anon_1 ON spans.parent_id = anon_1.span_id \nWHERE traces.project_rowid = $1::INTEGER AND spans.start_time >= $2::TIMESTAMP WITH TIME ZONE AND spans.start_time < $3::TIMESTAMP WITH TIME ZONE AND anon_1.span_id IS NULL AND strpos(CAST((spans.attributes #>> $4) AS VARCHAR), $5::VARCHAR) > $6::INTEGER AND (spans.attributes #> $7) ORDER BY \"f{self.name}_span_sort_column\" DESC NULLS LAST, spans.id DESC \n LIMIT $8::INTEGER]\n[parameters: (4, datetime.datetime(2024, 12, 13, 17, 0, tzinfo=datetime.timezone.utc), datetime.datetime(2025, 12, 20, 17, 0, tzinfo=datetime.timezone.utc), ['input', 'value'], '', 0, ['span', 'k'], 51)]\n(Background on this error at: https://sqlalche.me/e/20/f405)","locations":[{"line":24,"column":3}],"path":["node","rootSpans"]}]
The text was updated successfully, but these errors were encountered: