You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API tries to save via the serializer, but an exception is thrown as the constraint is not met. The error is not handled anywhere so it ends in a 500 error.
Expected behaviour
I expected to see this happen: Probably a 400 code reply with the error message "Destination label must be unique per media", or something along those lines
The text was updated successfully, but these errors were encountered:
This was tested via the Argus react frontend.
Backend v.1.16.0, API v1(stable), frontend v.1.14.1
The API returns a 500 error if you try to create a destination that has the same name, media type and belongs to the same user.
Steps to reproduce (example using email media, but should be the same for all media):
/destinations
pageI'm pretty sure the error is caused by a this constraint:
Argus/src/argus/notificationprofile/models.py
Line 133 in 90bdc8a
API tries to save via the serializer, but an exception is thrown as the constraint is not met. The error is not handled anywhere so it ends in a 500 error.
Expected behaviour
I expected to see this happen: Probably a 400 code reply with the error message "Destination label must be unique per media", or something along those lines
The text was updated successfully, but these errors were encountered: