fix WebRequest (again)
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m27s

This commit is contained in:
Lee 2024-04-13 15:42:30 +01:00
parent 57601acbb1
commit 852f5a8bea
2 changed files with 2 additions and 1 deletions

@ -35,6 +35,7 @@ public class WebRequest {
ResponseEntity<T> profile = CLIENT.get()
.uri(url)
.retrieve()
.onStatus(HttpStatusCode::isError, (request, response) -> {}) // Don't throw exceptions on error
.toEntity(clazz);
if (profile.getStatusCode().isError()) {

@ -4,7 +4,7 @@ import cc.fascinated.model.cache.CachedEndpointStatus;
import org.springframework.data.repository.CrudRepository;
/**
* A cache repository for the Mojang endpoint status.
* A cache repository for {@link CachedEndpointStatus}'s.
*
* @author Braydon
*/