Open guioday83 opened 4 years ago
I'm getting the same error
There's a hot-fix here... https://github.com/obert01/otx_misp/tree/fix-api
git clone -b fix-api https://github.com/obert01/otx_misp.git
cd otx_misp
pip3 install .
Thanks... running smoothly with this fix.
Description
otx-misp appers to be not working to publish event on updated environment.
runing otx-misp with "-d" options runs smoothly, but when removing (real publishing) we got following error..
Error: 'TypeError' object has no attribute 'message'
Versions
* otx-misp: 1.4.3 * PyMISP: 2.4.123 * MISP: v2.4.123 * Python (Python 2 will not be supported): Python 3.6.9 * Operating system: Ubuntu 18.04.3 LTS
Traceback or error
/var/www/MISP/venv/bin/otx-misp -o ** -s "http://127.0.0.1:8080/" -m **** -a -u --discover-tags --to-ids --distribution connected --author-tag --bulk-tag OTX --dedup-titles
Error: 'TypeError' object has no attribute 'message'
Same error here,
otx-misp -o XXXXXXXXXXXXXXXXXX-s http://misp.XXXXX.XXX -m XXXXXXXXXXXXXXXXXXXXXXXX Error: 'TypeError' object has no attribute 'message'
Note, a fork of otx-misp has fixed this problem I believe: https://github.com/obert01/otx_misp
I myself did not go down this road. Here's the problem as I see it
I kind of gave up on fixing this and I'm going to instead, I think, make MISP feeds for OTX. I did the first one here, which lets you get a MISP feed from a group, as a POC https://otx.alienvault.com/api/groups/GROUPID/misp_feed you can add this as a feed in MISP, you'll need to give X-OTX-API-KEY: YOURKEYHERE in the headers box.
I will probably add more MISP feed support in the near future
There's a hot-fix here... https://github.com/obert01/otx_misp/tree/fix-api
git clone -b fix-api https://github.com/obert01/otx_misp.git cd otx_misp pip3 install .
Thanks, it's work for me :)
There's a hot-fix here... https://github.com/obert01/otx_misp/tree/fix-api
git clone -b fix-api https://github.com/obert01/otx_misp.git cd otx_misp pip3 install .
Thanks, it's work for me :)
File "/home/xxxxx/.local/lib/python3.6/site-packages/pymisp/api.py", line 92, in __init__
self._current_user, self._current_role, self._current_user_settings = self.get_user(pythonify=True, expanded=True)
File "/home/xxxx/.local/lib/python3.6/site-packages/pymisp/api.py", line 1266, in get_user
role.from_dict(**user_j['Role'])
KeyError: 'Role'
Error: Cannot connect to MISP instance: Unable to connect to MISP (https://misp.xxxx.xxxx). Please make sure the API key and the URL are correct (http/https is required): 'Role'
I got this err. although the url and api are correct, Any fix?
There's a hot-fix here... https://github.com/obert01/otx_misp/tree/fix-api
git clone -b fix-api https://github.com/obert01/otx_misp.git cd otx_misp pip3 install .
Thanks, it's work for me :)
File "/home/xxxxx/.local/lib/python3.6/site-packages/pymisp/api.py", line 92, in __init__ self._current_user, self._current_role, self._current_user_settings = self.get_user(pythonify=True, expanded=True) File "/home/xxxx/.local/lib/python3.6/site-packages/pymisp/api.py", line 1266, in get_user role.from_dict(**user_j['Role']) KeyError: 'Role' Error: Cannot connect to MISP instance: Unable to connect to MISP (https://misp.xxxx.xxxx). Please make sure the API key and the URL are correct (http/https is required): 'Role'
I got this err. although the url and api are correct, Any fix?
Did you add http:// or https:// in front of your server IP or domain?
Did you add http:// or https:// in front of your server IP or domain? Ya!
Description
otx-misp appers to be not working to publish event on updated environment.
runing otx-misp with "-d" options runs smoothly, but when removing (real publishing) we got following error..
Error: 'TypeError' object has no attribute 'message'
Versions
Traceback or error
/var/www/MISP/venv/bin/otx-misp -o ** -s "http://127.0.0.1:8080/" -m **** -a -u --discover-tags --to-ids --distribution connected --author-tag --bulk-tag OTX --dedup-titles
Error: 'TypeError' object has no attribute 'message'