Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad error message rendering when failing to update segment #5071

Open
3 of 4 tasks
rolodato opened this issue Feb 3, 2025 · 0 comments
Open
3 of 4 tasks

Bad error message rendering when failing to update segment #5071

rolodato opened this issue Feb 3, 2025 · 0 comments
Labels
bug Something isn't working front-end Issue related to the React Front End Dashboard

Comments

@rolodato
Copy link
Member

rolodato commented Feb 3, 2025

How are you running Flagsmith

  • Self Hosted with Docker
  • Self Hosted with Kubernetes
  • SaaS at flagsmith.com
  • Some other way (add details in description below)

Describe the bug

See reproduction steps.

Steps To Reproduce

Create a segment rule with over 1000 bytes - here is a random 1001 byte string:

1W086HAAm5j95zXtexaJwGOVsBaxvg1+/dDxkkOsdZIN294cvkgH/+QbuYtcuI4Hg3d13NhAcJZjZQjBhs/CMNEWnAogRfQMZKpRBxU2+2sboq8SjafonDxw+Cc0JWmPK2fraQ6CyemmgkEGjF5WuiJZP6VCUTqLHin3OIilYFraLfwnS9GaMYg/KIl3KjS21GuMxeoxezOTCKbjDW2MWeUUUDDuMKQZVHC0FX/QJ+lXtBjzQ/A3IwJIVm+y8k1LsQqdgG+3QgYAiG4RAIVqXjhtcSs4l9zq5dJiOIHoGOH+J6mGI7MnzVaGH1uGHJH71KbHozlT3wztAvS/lL9tttzD/SmaK29k4+jbAhrXavbD99NJtm+GvWq+vx3sJ21nZcunyuE+u0NPqQL0+NCzDFIyhVuEezirPpvnWXRMbUE9It1lxG4rrqfy7twOLnVEV04B7W938gSDbOF42kpFyXc/LROu3bukUBMEfCSukZtLvzQBJPYVn3WH/6QATPKO/1rSgT7CsKD4sJYzyRfiejk1YB7MwOKKZGLnUk+ixTrRbFY+Lypf+C9fSuL0pdMKLBqXZ30eaVjIwe1dzZE6tuke7ZJqVKTjd73YvbHNn+MFCD6uzAHGDBJv/5IL4ImPLTYFaPMntYRcIjpTUugIG65x2vE5rT20Vmw1MjnY08eCsEjd79HjggqfLnHUs2ujNrDHv606PSnQJNLw9f2bskIR60YkdvM0xepVkgIHftN7uCSvWRYRhIVEimnC9+UVY7h3Mjdxzgvr8JQgyRrbc370G+mH0xICYrcI/fas5fdyd01r60nr3H4YGVmqo/UqlTDk8HaQUFe5VYKGv5RODPL6tz61AYM48T79XhXzbEkbQpAQDHncDvJFo+C0yP8nHGoBHXPYQk9hkRWyMpYaGgHkZgClRHV+/gZBZ3MVlvn9acXv/ojz65Mk2hwkhTWk0uEO9eiotG+aYH3aSI33BX1izJ9hhz2W6c6/fB6R1

The API error response is:

{
  "rules": [
    {
      "rules": [
        {
          "conditions": [
            {
              "value": [
                "Ensure this field has no more than 1000 characters."
              ]
            }
          ]
        }
      ]
    }
  ]
}

This is rendered as [object Object] like this:

Image

Expected behavior

Render the correct error message.

Screenshots

No response

@rolodato rolodato added bug Something isn't working front-end Issue related to the React Front End Dashboard labels Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

No branches or pull requests

1 participant