fix bug with calling apis

This commit is contained in:
Lee 2024-04-13 15:36:20 +01:00
parent 811ea348cf
commit 471c3e6e80

@ -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()) {