semantic bufo search

improve error handling for overly long search queries #2

merged
opened by zzstoatzz.io targeting main from fix-query-length-error-handling

when users submit search queries exceeding turbopuffer's 1024 character limit for BM25 text search, the application now returns a 400 Bad Request with a helpful error message instead of a generic 500 Internal Server Error.

changes:

  • add TurbopufferError enum to categorize different error types
  • parse turbopuffer API error responses to detect query length violations
  • return 400 status with user-friendly message for query length errors
  • maintain 500 status for genuine server errors

this fix ensures users understand the limitation and can adjust their queries accordingly, without falsely suggesting a server-side problem.

๐Ÿค– Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

0
by zzstoatzz.io 0 comments
expand 2 commits
improve error handling for overly long search queries
fix frontend to display backend error messages to users
pull request successfully merged
sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:xbtmt2zjwlrfegqvch7fboei/sh.tangled.repo.pull/3m4xzgothi622