Closed erard22 closed 4 years ago
Ah... I could debug the issue and found it here:
public String removeAPIUrl(String url) {
String withoutHost = url.substring(hostUrl.length());
return withoutHost.substring(withoutHost.indexOf(API_NAMESPACE) + API_NAMESPACE.length());
}
Because our server has two dns names and returns not the same in his response as we initially configured it in sonar the calculation of the lenght is wrong.
I think it's related to our setup and can be closed.
From time to time my builds are failing with the following error:
Caused by: java.io.FileNotFoundException: https://host/api/v4/jects/33932/repository/commits/77961905e8cb59255bb6a9e293014119c7ad233d/diff?id=33932&page=2&per_page=20&sha=77961905e8cb59255bb6a9e293014119c7ad233d
looking at the URL there we see that it really a wrong url
https://host/api/v4/jects/33932
instead ofhttps://host/api/v4/projects/33932
Currently I don't see where this is comming from.