[HARFANGLAB-INCIDENTS] AttributeError: 'NoneType' object has no attribute 'name' #3153
Labels
bug
use for describing something not working as expected
filigran support
[optional] use to identify an issue related to feature developed & maintained by Filigran.
solved
use to identify issue that has been solved (must be linked to the solving PR)
Milestone
Description
No synchronisation with harfanglabs incidents :
{"timestamp": "2024-12-18T08:25:04.266251Z", "level": "INFO", "name": "HarfangLab", "message": "[API] HTTP GET Request to endpoint", "attributes": {"url": "https://xxxxx//api/data/alert/alert/Alert?status=new%2Cinvestigating%2Cclosed&alert_type=yara%2Csigma%2Cioc&maturity=stable&ordering=alert_time&limit=100&from=2024-01-01T00%3A00%3A00%2B00%3A00"}}
{"timestamp": "2024-12-18T08:25:04.667991Z", "level": "INFO", "name": "HarfangLab", "message": "[API] HTTP GET Request to endpoint", "attributes": {"url": "https://XXXXXXXXXX//api/data/threat_intelligence/SigmaRule"}}
{"timestamp": "2024-12-18T08:25:04.671117Z", "level": "ERROR", "name": "HarfangLab", "message": "'NoneType' object has no attribute 'name'", "exc_info": "Traceback (most recent call last):\n File "/opt/opencti-harfanglab-incidents/harfanglab_incidents_connector/connector.py", line 296, in process_message\n stix_bundle = self.create_stix_bundle()\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/opt/opencti-harfanglab-incidents/harfanglab_incidents_connector/connector.py", line 267, in create_stix_bundle\n stix_objects = self._collect_incident_intelligence()\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/opt/opencti-harfanglab-incidents/harfanglab_incidents_connector/connector.py", line 170, in _collect_incident_intelligence\n stix_observables = self.converter_to_stix.create_observables(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/opt/opencti-harfanglab-incidents/harfanglab_incidents_connector/converter_to_stix.py", line 343, in create_observables\n observable = self._create_file(alert.process)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/opt/opencti-harfanglab-incidents/harfanglab_incidents_connector/converter_to_stix.py", line 67, in _create_file\n name=process.name,\n ^^^^^^^^^^^^\nAttributeError: 'NoneType' object has no attribute 'name'"}
{"timestamp": "2024-12-18T08:25:04.672808Z", "level": "INFO", "name": "HarfangLab", "message": "[INFO] Schedule next run of connector: ", "attributes": {"next_run_datetime": "2024-12-18T08:26:04Z"}}
Environment
My dockerconfiguration is :
harfanglab-incidents:
image: opencti/connector-harfanglab-incidents:rolling
environment:
restart: always
depends_on:
The text was updated successfully, but these errors were encountered: