fix(404): Fix 404 Exit Error. (#3189)

This commit is contained in:
John Joyce 2021-09-02 21:11:41 -07:00 committed by GitHub
parent ccb09a6966
commit d9380eeffa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 14 deletions

View File

@ -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();
}
}

View File

@ -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