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

[crowstrike] Cannot process the message #3061

Closed
gileri opened this issue Dec 3, 2024 · 2 comments
Closed

[crowstrike] Cannot process the message #3061

gileri opened this issue Dec 3, 2024 · 2 comments
Assignees
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

Comments

@gileri
Copy link
Member

gileri commented Dec 3, 2024

Description

Environment

  1. OS (where OpenCTI server runs): Official docker image
  2. OpenCTI version: 6.4.2
  3. OpenCTI client: python
  4. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Run connector

Expected Output

No crash or error

Actual Output

{"timestamp": "2024-12-03T13:22:31.209738Z", "level": "ERROR", "name": "CrowdStrike Endpoint Security", "message": "[API] Error while processing indicator", "exc_info": "NoneType: None", "taskName": null, "attributes": {"error_message": "One or more indicators have a warning or invalid input"}}
{"timestamp": "2024-12-03T13:22:37.669737Z", "level": "ERROR", "name": "CrowdStrike Endpoint Security", "message": "[API] Error while processing indicator", "exc_info": "NoneType: None", "taskName": null, "attributes": {"error_message": "One or more indicators have a warning or invalid input"}}
{"timestamp": "2024-12-03T13:22:46.374596Z", "level": "ERROR", "name": "CrowdStrike Endpoint Security", "message": "Error in ListenStream loop, exit.", "exc_info": "Traceback (most recent call last):\n  File \"/opt/opencti-connector-crowdstrike-endpoint-security/crowdstrike_connector/crowdstrike.py\", line 57, in _process_message\n    data = json.loads(msg.data)[\"data\"]\n           ^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.12/json/__init__.py\", line 346, in loads\n    return _default_decoder.decode(s)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.12/json/decoder.py\", line 337, in decode\n    obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.12/json/decoder.py\", line 353, in raw_decode\n    obj, end = self.scan_once(s, idx)\n               ^^^^^^^^^^^^^^^^^^^^^^\njson.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 1591 (char 1590)\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/usr/local/lib/python3.12/site-packages/pycti/connector/opencti_connector_helper.py\", line 658, in run\n    self.callback(msg)\n  File \"/opt/opencti-connector-crowdstrike-endpoint-security/crowdstrike_connector/crowdstrike.py\", line 59, in _process_message\n    raise ValueError(\"Cannot process the message\")\nValueError: Cannot process the message", "taskName": null, "attributes": {"reason": "Cannot process the message"}}
Terminated

Additional information

I'm not sure the issue lie on the connector side, pycti, or opencti/platform itself.

Screenshots (optional)

@gileri gileri added bug use for describing something not working as expected needs triage use to identify issue needing triage from Filigran Product team labels Dec 3, 2024
@Megafredo
Copy link
Member

This problem has already been identified and resolved, but it is currently merged but not deployed.
See : FiligranHQ/filigran-sseclient#1

@Megafredo Megafredo assigned Megafredo and flavienSindou and unassigned Megafredo Dec 9, 2024
@Megafredo Megafredo added filigran team use to identify PR from the Filigran team and removed needs triage use to identify issue needing triage from Filigran Product team labels Dec 9, 2024
flavienSindou added a commit to OpenCTI-Platform/client-python that referenced this issue Dec 17, 2024
@flavienSindou flavienSindou added the solved use to identify issue that has been solved (must be linked to the solving PR) label Dec 17, 2024
@flavienSindou flavienSindou added this to the Release 6.4.5 milestone Dec 17, 2024
@flavienSindou
Copy link
Contributor

PR in pycti package OpenCTI-Platform/client-python#795

@helene-nguyen helene-nguyen added filigran support [optional] use to identify an issue related to feature developed & maintained by Filigran. and removed filigran team use to identify PR from the Filigran team labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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)
Projects
None yet
Development

No branches or pull requests

4 participants