Open baymax1908 opened 3 years ago
I can get the data by postman. By python, seems it didn't parse the result correctly.
Yeah, MISP is returning a stacktrace, so PyMISP fails to parse the json.
@mokaddem @iglocska that's something for you, I think?
Fixed this issue by changing the getVersion() function to old version.
public function getVersion() { if (!$this->userRole['perm_auth']) { throw new MethodNotAllowedException('This action requires API access.'); } $versionArray = $this->Server->checkMISPVersion(); $this->set('response', array('version' => $versionArray['major'] . '.' . $versionArray['minor'] . '.' . $versionArray['hotfix'], 'perm_sync' => $this->userRole['perm_sync'], 'perm_sighting' => $this->userRole['perm_sighting'])); $this->set('_serialize', 'response'); }
The test suite is passing on the github actions so I'm not sure what you're talking about.
@baymax1908 could you check the diagnostic page in MISP? Especially the database schema diagnostic. Thanks!
OS: Centos 7 MISP: 2.4.144 pymisp: 2.4.144
The script is working fine. After upgrade to MISP 2.4.144. It failed.
Test script:
misp_verifycert = True relative_path = 'users/statistics/users' body = []
from pymisp import ExpandedPyMISP
misp = ExpandedPyMISP(misp_url, misp_key, misp_verifycert) misp.direct_call(relative_path, body)
Error message: