PyMISP
PyMISP copied to clipboard
CRITICAL:pymisp:Unknown error: the response is not in JSON
Hello everyone, I hope you are well, I would like to tell you that I am new here and I am doing a laboratory for my university, I installed Misp and I have tried to link it to OpenCTI but it gives me the following error
ERROR:root:Error fetching misp event again: Error code 500: {"name":"An Internal Error Has Occurred.","message":"An Internal Error Has Occurred.","url":"/events/restSearch"} INFO:root:Connector successfully run (0 events have been processed), storing state (last_run=2023-01-06T05:30:18.816024+00:00, last_event=2000-01-01T00:00:00+00:00, last_event_timestamp=946684800)
I would be very grateful if you could help me
RITICAL:pymisp:Unknown error: the response is not in JSON. Something is broken server-side, please send us everything that follows (careful with the auth key): Request headers: {'User-Agent': 'PyMISP 2.4.167 - Python 3.10', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Cookie': 'CAKEPHP=8qqqmihl0829goirhi7uk2c5j2jqnn1b'} Request body: None Response (if any): {"name":"An Internal Error Has Occurred.","message":"An Internal Error Has Occurred.","url":"/events/restSearch"} ERROR:root:Error fetching misp event: Error code 500: {"name":"An Internal Error Has Occurred.","message":"An Internal Error Has Occurred.","url":"/events/restSearch"} CRITICAL:pymisp:Unknown error: the response is not in JSON.
You will need to iterate over the response, as described there: https://github.com/MISP/PyMISP/issues/766#issuecomment-1303272696