Originally created by: danilofuchs
Originally owned by: mattinannt
https://app.formbricks.com/api/v1/client/clpb765qb2skzdl2i9vxh8njv/people/user_2WLtykPSntaXpZmrxA1l9o20zmT
{
"attributes": {
"companyId": "0e61bb89-5b34-4303-832d-c6926bfa1ee8"
}
}
500 Internal Server Error
{
"code": "internal_server_error",
"message": "Unable to complete request: \nInvalid `prisma.attributeClass.create()` invocation:\n\n\nUnique constraint failed on the fields: (`name`,`environmentId`)",
"details": {}
}
await formbricks.setAttribute("companyId", companyId);Attribute to be saved
No response
No response
- Browser: Chrome 119
- Node: 18
Originally posted by: danilofuchs
Update: I archived the attribute in the Dashboard, ran the application and unarchived it, now it works.
Originally posted by: mattinannt
@danilofuchs this seems like a caching issue where the attribute class isn't recognized properly. We will check on this and come up with a fix :-)