Skip to content

Better json parsing errors#216

Open
Ankur Goyal (ankrgyl) wants to merge 1 commit into
mainfrom
better-errors
Open

Better json parsing errors#216
Ankur Goyal (ankrgyl) wants to merge 1 commit into
mainfrom
better-errors

Conversation

@ankrgyl
Copy link
Copy Markdown
Contributor

If a query result fails to parse, we'll get better errors:

error: failed to parse response from POST /btql
  target: bt::sql::SqlResponse
  JSON path: realtime_state.read_bytes
  reason: invalid type: string "oops", expected u64 at line 1 column 72
  status: 200 OK
  content-type: application/json
  body bytes: 74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant