ERROR while using stix2.export_entity | " 'Cannot query field "x_opencti_reliability" "
Description
Hello, I tried to get a report from STIX2, using the "Standard STIX ID". But I get the error 'Cannot query field "x_opencti_reliability"
Environment
- Windows 10 via Python
- OpenCTI version: 5.9.4
- Other environment details:
Reproducible Steps
I just want to get a report from my OpenCTI using Python :
from pycti import OpenCTIApiClient
import json
api_url = "https://192.168.0.25"
api_token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
opencti_api_client = OpenCTIApiClient(api_url, api_token)
report = opencti_api_client.stix2.export_entity("Report", "report--1f561489-3344-54f8-a6fd-1c1d5505bf15", "full")
print(report)
Expected Output
The report.
Actual Output
INFO:pycti.entities:Reading Report {78c46a28-87e8-421a-814a-022eb86a5e77}.
ERROR:pycti.api:Cannot query field "x_opencti_reliability" on type "Identity". Did you mean to use an inline fragment on "Organization"?
Traceback (most recent call last):
File "c:\Users\xxxx\pyopenctiv2.py", line 63, in
Hello @TheGreenmouse,
Does your python client have the same version as opencti ? x_opencti_reliability is well defined in Identity type, but was added in 5.10.