|
|
@@ -33,7 +33,7 @@ public class HttpService {
|
|
|
|
|
|
public HttpService() {
|
|
|
this.httpClient = HttpClient.newBuilder()
|
|
|
- .connectTimeout(Duration.ofSeconds(5))
|
|
|
+ .connectTimeout(Duration.ofSeconds(200))
|
|
|
.build();
|
|
|
}
|
|
|
|
|
|
@@ -41,7 +41,7 @@ public class HttpService {
|
|
|
|
|
|
private HttpRequest.Builder baseRequest(String authorization) {
|
|
|
HttpRequest.Builder builder = HttpRequest.newBuilder()
|
|
|
- .timeout(Duration.ofSeconds(10))
|
|
|
+ .timeout(Duration.ofSeconds(200))
|
|
|
.header("Content-Type", "application/json");
|
|
|
|
|
|
if (authorization != null && !authorization.isBlank()) {
|
|
|
@@ -154,7 +154,7 @@ public class HttpService {
|
|
|
try {
|
|
|
HttpRequest request = HttpRequest.newBuilder()
|
|
|
.uri(URI.create(url))
|
|
|
- .timeout(Duration.ofSeconds(60))
|
|
|
+ .timeout(Duration.ofSeconds(200))
|
|
|
.header("Authorization", authorization)
|
|
|
.header("Accept", "text/event-stream")
|
|
|
.header("Content-Type", "application/json")
|