Open ismo-conguairta opened 2 years ago
As a work around use release id (rid) instead of BSI token.
Even with release id, I am getting same error:
java.io.IOException: Unexpected code: Response{protocol=h2, code=401, message=, url=https://api.emea.fortify.com/api/v3/releases/<my_release_id_5_numeric_digits>/static-scans/scan-setup}
at com.fortify.fod.fodapi.controllers.ReleaseController.getReleaseScanSettings(ReleaseController.java:128)
at com.fortify.fod.Main.main(Main.java:113)
java.lang.NullPointerException
at com.fortify.fod.fodapi.controllers.ReleaseController.UpdateScanSettings(ReleaseController.java:196)
at com.fortify.fod.Main.main(Main.java:113)
code 401 seems to be an authentication error, try new api keys ..
By using bsi token produces a NullPointerException because the lack of value for the releaseId attribute.
The resulting url is
https://api.emea.fortify.com/api/v3/releases/0/static-scans/scan-setup
where0
should be the releaseId. In this case I guess0
stands fornull
.