Open IgorGanapolsky opened 2 years ago
Looks like a permission error. Did you run it with medallion as the TAXII server? Did you use the configuration and data included with that project?
I just used the default config. I did not set up a separate TAXII server. Do I need to?
@IgorGanapolsky - yes you need to run a TAXII server if you want to use the TAXII data store. See https://github.com/oasis-open/cti-taxii-server. You probably want to use the MemoryBackend
Hello, when I run your example in the
examples
folder, I get an error:During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Users/igorganapolsky/workspace/git/Andreww6/gists/main.py", line 39, in
main()
^^^^^^
File "/Users/igorganapolsky/workspace/git/Andreww6/gists/main.py", line 13, in main
taxii = stix2.TAXIICollectionSource(collection)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/igorganapolsky/workspace/git/Andreww6/gists/venv/lib/python3.11/site-packages/stix2/datastore/taxii.py", line 172, in init
raise DataSourceError(
^^^^^^^^^^^^^^^^^^^^^^
stix2.datastore.DataSourceError: The underlying TAXII Collection resource defined in the supplied TAXII Collection object provided could not be reached. Recieved error: "403 Client Error: Forbidden for url: http://127.0.0.1:5000/trustgroup1/collections/91a7b528-80eb-42ed-a74d-c6fbd5a26116/"
Process finished with exit code 1