MISP / MISP/PyMISP

I use add_attribute but i have a error in this func.

Open
#983 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
491
Forks
290
Avg merge
2d 8h
Merged PRs (30d)
3

Description

line 779, in add_attribute
if ('errors' in new_attribute and new_attribute['errors'][0] == 403
KeyError: 0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect add_attribute around line 779 and reproduce the reported KeyError: 0 using the issue's example. Determine the structure of new_attribute['errors'] returned by the MISP REST API, then verify that add_attribute handles that response without raising this KeyError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.