Skip to content
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

upload_stix function return nothing when using in-memory file #1165

Open
tomcangbk opened this issue Mar 1, 2024 · 0 comments
Open

upload_stix function return nothing when using in-memory file #1165

tomcangbk opened this issue Mar 1, 2024 · 0 comments

Comments

@tomcangbk
Copy link

tomcangbk commented Mar 1, 2024

Hi, i got an issue when trying to upload stix2 event with in-memory file

import io
inmemoryfile = io.StringIO()
json.dump(stix_data, inmmemoryfile)
misp_event = misp.upload_stix(inmemoryfile) 

this code cannot added event and return no error also

i checked with dump stix_data to json file on disk and event added normally

def upload_stix(self, path: str | Path | BytesIO | StringIO | None = None,

pymisp version: 2.4.183

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant