|
|
@ -107,8 +107,8 @@ public class EventReceiverServiceImpl implements EventReceiverService {
|
|
|
|
return Response.status(Response.Status.CREATED).entity(message).build();
|
|
|
|
return Response.status(Response.Status.CREATED).entity(message).build();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
log.warn("Error occurred while trying to publish the event. This could be due to unavailability " +
|
|
|
|
log.warn("Error occurred while trying to publish the event. This could be due to unavailability " +
|
|
|
|
"of the publishing service. Please make sure that analytics server is running and accessible by " +
|
|
|
|
"of the publishing service. Please make sure that analytics server is running and accessible " +
|
|
|
|
"this server");
|
|
|
|
"by this server");
|
|
|
|
throw new UnexpectedServerErrorException(
|
|
|
|
throw new UnexpectedServerErrorException(
|
|
|
|
new ErrorResponse.ErrorResponseBuilder().setCode(503l).setMessage("Error occurred due to " +
|
|
|
|
new ErrorResponse.ErrorResponseBuilder().setCode(503l).setMessage("Error occurred due to " +
|
|
|
|
"unavailability of the publishing service.").build());
|
|
|
|
"unavailability of the publishing service.").build());
|
|
|
|