MISP / MISP/PyMISP

Failed to create new Event

Open
#773 1 comment 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

I run the create_events.py script and i get this

/usr/lib/python3/dist-packages/urllib3/connectionpool.py:999: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  warnings.warn(
Something went wrong (403): {'saved': False, 'name': 'Could not add Event', 'message': 'Could not add Event', 'url': '/events/add', 'errors': {'Event': {'info': ['valueNotEmpty']}}}
{'errors': (403, {'saved': False, 'name': 'Could not add Event', 'message': 'Could not add Event', 'url': '/events/add', 'errors': {'Event': {'info': ['valueNotEmpty']}}})}

After the ssl warning is the problem i think but im not sure. I'm just testing it because there is not a lot of documentation about it.
Thanks in advance

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

Start with the create_events.py script and reproduce the request against the MISP REST API. Compare the SSL warning with the separate 403 response and inspect the event data sent to /events/add, especially the reported valueNotEmpty error. Done means the script creates a new Event successfully or documents the required input and the precise failure.

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
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.