03-11-25
This commit is contained in:
@@ -124,11 +124,12 @@ public class HttpService {
|
||||
.headers(h -> h.addAll(headers))
|
||||
.retrieve()
|
||||
.toEntity(String.class);
|
||||
|
||||
|
||||
response.put("respCode", String.valueOf(restResponse.getStatusCode().value()));
|
||||
response.put("data", restResponse.getBody());
|
||||
|
||||
log.info("✅ GET Response: {}", restResponse.getStatusCode());
|
||||
log.info("✅ GET Response: {}", restResponse.getBody());
|
||||
|
||||
} catch (HttpClientErrorException | HttpServerErrorException httpException) {
|
||||
log.error("❌ HTTP Error: {}", httpException.getMessage(), httpException);
|
||||
|
||||
Reference in New Issue
Block a user