OpenCTI-Platform / connectors

OpenCTI Connectors
https://www.opencti.io
Apache License 2.0
374 stars 406 forks source link

[ImportFileStix] Error in message processing, reporting error to API #2701

Open dominictory opened 1 month ago

dominictory commented 1 month ago

On 6.3.1, I am seeing the below error for ImportFileStix:

{"timestamp": "2024-09-24T09:20:34.869767Z", "level": "ERROR", "name": "ImportFileStix", "message": "Error in message processing, reporting error to API", "exc_info": "Traceback (most recent call last):\n  File \"/usr/local/lib/python3.11/site-packages/pycti/connector/opencti_connector_helper.py\", line 352, in _data_handler\n    message = self.callback(event_data)\n              ^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/opt/opencti-connector-import-file-stix/import-file-stix.py\", line 38, in _process_message\n    bundle = json.loads(file_content)[\"objects\"]\n             ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^\nKeyError: 'objects'"}

This is occurring quite often in my platform, which was started this morning, with approximately 50 errors.

romain-filigran commented 1 week ago

Hello @dominictory Do you have any information that would enable us to reproduce the problem you encountered?