questdb / questdb/ui

HTTP error responses from the API should not break Web Console rendering

Open
#296 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
29
Forks
39
Avg merge
4d 11h
Merged PRs (30d)
4

Description

Web Console makes certain assumptions about the error formatting (i.e. 400) coming from the HTTP API - i.e. tries to parse its content assuming they are JSON, etc. Further down the chain we are doing stuff like toLocaleString(), etc. which all can result in breaking in application render process (basically, a blank screen).

We should ensure that:

  • We are rendering the associated error message only if a format matches the expected one and it's present at all
  • Error position is set within range
  • The logic prone to breaking happens is sufficiently isolated (i.e. in a try catch blocks) to prevent crashing the application.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the Web Console's HTTP API error-handling path into the application rendering process, using malformed or unexpected 400 responses to reproduce the blank screen. Done means mismatched or absent error formats do not render, error positions stay in range, and failures in the error-processing logic no longer crash the application.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
api, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.