-
Notifications
You must be signed in to change notification settings - Fork 486
Labels
bugSomething isn't workingSomething isn't workingfront-endIssue related to the React Front End DashboardIssue related to the React Front End Dashboard
Description
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:
Expected behavior
Render the correct error message.
Screenshots
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfront-endIssue related to the React Front End DashboardIssue related to the React Front End Dashboard