-
Notifications
You must be signed in to change notification settings - Fork 280
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
I use add_attribute but i have a error in this func. #983
Comments
I add attributes in multiple using add_attribute (I give a list to value) and I get the error I show above. I show the reason for this below. Something went wrong (403): {'saved': False, 'name': 'Could not add Attribute', 'message': 'Could not add Attribute', 'url': '/attributes/add', 'errors': {'attribute_0': {'value': ['A similar attribute already exists for this event.']}, 'attribute_1': {'value': ['A similar attribute already exists for this event.']}, 'attribute_2': {'value': ['A similar attribute already exists for this event.']}, 'attribute_3': {'value': ['A similar attribute already exists for this event.']}}} |
Do you have duplicate attributes in your list? If so, you might want to check out this on https://www.misp-project.org/2023/04/13/MISP.2.4.170.released.html/ which was requested in MISP/MISP#5257 Fixes
|
TY! |
line 779, in add_attribute
if ('errors' in new_attribute and new_attribute['errors'][0] == 403
KeyError: 0
The text was updated successfully, but these errors were encountered: