mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-02 03:39:03 +00:00
fix(404): Fix 404 Exit Error. (#3189)
This commit is contained in:
parent
ccb09a6966
commit
d9380eeffa
@ -22,7 +22,6 @@ public class BootstrapManagerApplicationListener implements ApplicationListener<
|
||||
|
||||
@Override
|
||||
public void onApplicationEvent(@Nonnull ContextRefreshedEvent event) {
|
||||
System.out.println("Started the application you idiot");
|
||||
_bootstrapManager.start();
|
||||
}
|
||||
}
|
||||
|
||||
@ -7,7 +7,6 @@ import com.linkedin.restli.client.AbstractRequestBuilder;
|
||||
import com.linkedin.restli.client.Client;
|
||||
import com.linkedin.restli.client.Request;
|
||||
import com.linkedin.restli.client.Response;
|
||||
import com.linkedin.restli.client.RestLiResponseException;
|
||||
import javax.annotation.Nonnull;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
@ -24,21 +23,9 @@ public abstract class BaseClient implements AutoCloseable {
|
||||
protected <T> Response<T> sendClientRequest(
|
||||
final AbstractRequestBuilder<?, ?, ? extends Request<T>> requestBuilder,
|
||||
final String actor) throws RemoteInvocationException {
|
||||
try {
|
||||
// Actor = CorpUserUrn associated with the initiator of the request.
|
||||
requestBuilder.addHeader(Constants.ACTOR_HEADER_NAME, actor);
|
||||
return _client.sendRequest(requestBuilder.build()).getResponse();
|
||||
} catch (RemoteInvocationException e) {
|
||||
if (e instanceof RestLiResponseException) {
|
||||
RestLiResponseException restliException = (RestLiResponseException) e;
|
||||
if (restliException.getStatus() == 404) {
|
||||
log.error("ERROR: Your datahub-frontend instance version is ahead of your gms instance. "
|
||||
+ "Please update your gms to the latest Datahub release");
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user