Closed campbellmcgregor closed 2 months ago
I have just checked a few other connectors and they are all saying it:
File "/usr/local/lib/python3.11/site-packages/pycti/api/opencti_api_client.py", line 363, in query raise ValueError(value_error) ValueError: {'name': 'Unknown type "ConnectorInfoInput". Did you mean "ConnectorConfig", "ConnectorType", "CountryAddInput", "DirectoryAddInput", or "SectorAddInput"?',
Hi @campbellmcgregor, this error is due to a change on the OpenCTI side, but also on client-python side, so it affects all connectors. Can you update and rebuild your client-python ? This should fix your problem. https://github.com/OpenCTI-Platform/client-python
Ok cool let me do that and come back to you thanks
Hello @campbellmcgregor, can you tell me if this solved your problem ? if so I will close this issue.
Description
Trying to connect the MISP feed to opencti. The docker compose is separate but is on the same docker network as the opencti docker compose. After launching the docker container the following errors appear:
ERROR Error pinging the API | timestamp=2024-08-08T14:14:11.986325Z name=MISP Feed CIRL Osint exc_info=Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/pycti/connector/opencti_connector_helper.py", line 454, in ping result = self.api.connector.ping( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pycti/api/opencti_api_connector.py", line 112, in ping result = self.api.query( ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pycti/api/opencti_api_client.py", line 363, in query raise ValueError(value_error) ValueError: {'name': 'Unknown type "ConnectorInfoInput". Did you mean "ConnectorConfig", "ConnectorType", "CountryAddInput", "DirectoryAddInput", or "SectorAddInput"?', 'error_message': 'Unknown type "ConnectorInfoInput". Did you mean "ConnectorConfig", "ConnectorType", "CountryAddInput", "DirectoryAddInput", or "SectorAddInput"?'} attributes={"reason":"{'name': 'Unknown type \"ConnectorInfoInput\". Did you mean \"ConnectorConfig\", \"ConnectorType\", \"CountryAddInput\", \"DirectoryAddInput\", or \"SectorAddInput\"?', 'error_message': 'Unknown type \"ConnectorInfoInput\". Did you mean \"ConnectorConfig\", \"ConnectorType\", \"CountryAddInput\", \"DirectoryAddInput\", or \"SectorAddInput\"?'}"}
I can see the access logs for the connector account but there is nothing being imported.
Environment
Reproducible Steps
Steps to create the smallest reproducible scenario: Using the following docker compose
`version: '3' services: connector-misp-feed: image: opencti/connector-misp-feed:6.2.12 environment:
networks: docker_default: external: true`
Expected Output
The MISP connector to pull in from the feed to OpenCTI
Actual Output
Error message as above
Additional information
Screenshots (optional)