Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

Cloud Non production pipeline error

Avatar

Level 7

The code quality step for the Non-production pipeline threw the following error.

 

JakeCham_0-1704190814208.png

 

what is the correct code snippet to replace the above code.

 

a.

JakeCham_1-1704190962067.png

b.

JakeCham_2-1704190993064.png

c.

JakeCham_3-1704191025660.png

d.

JakeCham_4-1704191058906.png

 

Thanks in advance!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Option B

public void test() {
    HttpClientBuilder builder = httpClientBuilderFactory.newBuilder();
    RequestConfig requestConfig = RequestConfig.custom()
        .setConnectTimeout(5000)
        .setSocketTimeout(5000)
        .build();
    builder.setDefaultRequestConfig(requestConfig);
        
    HttpClient httpClient = builder.build();
        
    // do something with the client
}
Mahedi Sabuj

MS-29LinkedIn

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Option B

public void test() {
    HttpClientBuilder builder = httpClientBuilderFactory.newBuilder();
    RequestConfig requestConfig = RequestConfig.custom()
        .setConnectTimeout(5000)
        .setSocketTimeout(5000)
        .build();
    builder.setDefaultRequestConfig(requestConfig);
        
    HttpClient httpClient = builder.build();
        
    // do something with the client
}
Mahedi Sabuj

MS-29LinkedIn

Avatar

Level 4

Avatar

Level 7

Thanks a lot.. This explains well 

Avatar

Administrator

@JakeCham Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni