Skip to content

FE: Messages: JSON path errors crash the page #1436

@Amenocy

Description

@Amenocy

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running main-labeled docker image and the issue still persists there
  • I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

if preview jsonPath expression causes some error, for example:

Image

since previews are stored in the local storage of the browser. So if the preview does cause errors, the issue persists until it is removed.

And after clearing the kafbat-ui-message-preview value of the local storage, I was able to access the topic again.

Expected behavior

app should not save values causes error in local-storage, or try to delete it after error.

Your installation details

using kafbat 1.16.0 and helm chart

Steps to reproduce

use an invalid jsonPath expression in Preview

Screenshots

No response

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions