For initial some time (when app is deployed) it works fine and after some 
time it's throwing this error.

I am using jersey client 2.21 libraries. 

---------- sample code ------------------
Client client = ClientBuilder.newClient();
client.register(GZipEncoder.class);
WebTarget webTarget = client.target(uri);
if(queryParams != null) {
Iterator<Entry<String, Object>> it = queryParams.entrySet().iterator();
while(it.hasNext()) {
Entry<String, Object> set = it.next();
webTarget = webTarget.queryParam(set.getKey(), set.getValue());
}
}
Invocation.Builder builder = webTarget.request();
if(headers != null) {
builder = webTarget.request().headers(new MultivaluedHashMap<>(headers));
}
return builder.accept("application/json").get(Response.class);

note: other detail are shared in private replace.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a74d5fc5-f6a5-46e1-9a64-61caa89300e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to