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

Python API Analyzer/Observables Error #801

Open
jfierro6 opened this issue Dec 17, 2024 · 1 comment
Open

Python API Analyzer/Observables Error #801

jfierro6 opened this issue Dec 17, 2024 · 1 comment
Labels
bug use for describing something not working as expected needs more info use to identify issue needing additional info to be triaged or solved

Comments

@jfierro6
Copy link

Description

{ When trying to use an analyzer/observable I get an error about 'Unknown type "Persona"' }

Environment

  1. OS OS - Flatcar Linux
  2. OpenCTI version: 6.1.12
  3. OpenCTI client: Python 6.4.4

Reproducible Steps

  1. Run script / Error
Traceback (most recent call last):
  File "/worker/OpenCTI/opencti.py", line 114, in <module>
    OpenCTIAnalyzer().run()
    ~~~~~~~~~~~~~~~~~~~~~^^
  File "/worker/OpenCTI/opencti.py", line 65, in run
    observables = opencti["api_client"].stix_cyber_observable.list(search=data)
  File "/usr/local/lib/python3.13/site-packages/pycti/entities/opencti_stix_cyber_observable.py", line 84, in list
    result = self.opencti.query(
        query,
    ...<8 lines>...
        },
    )
  File "/usr/local/lib/python3.13/site-packages/pycti/api/opencti_api_client.py", line 368, in query
    raise ValueError(value_error)
ValueError: {'name': 'Unknown type "Persona".', 'error_message': 'Unknown type "Persona".'}

Additional info

Assuming that the 'OpenCTI CE : Secured W/ Nginx + Flatcar Linux' AMI from the AWS Market Place is a bit outdated, I went ahead and updated the OpenCTI connector to use version 6.4.4

@jfierro6 jfierro6 added bug use for describing something not working as expected needs triage use to identify issue needing triage from Filigran Product team labels Dec 17, 2024
@nino-filigran nino-filigran added needs triage use to identify issue needing triage from Filigran Product team and removed needs triage use to identify issue needing triage from Filigran Product team labels Jan 8, 2025
@nino-filigran
Copy link

Could you please try to upgrade your OCTI platform, to ensure it matches the same version as your Client Python version and see if the problem remains? The issue might be that your two versions are different.

@nino-filigran nino-filigran added needs more info use to identify issue needing additional info to be triaged or solved and removed needs triage use to identify issue needing triage from Filigran Product team labels Jan 8, 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 needs more info use to identify issue needing additional info to be triaged or solved
Projects
None yet
Development

No branches or pull requests

2 participants