Code being used:
public InputStream doGetRequest(String link) throws ClientProtocolException, IOException {
logger.log("Request Url: " + link, LogManager.DEBUG);
HttpGet httpget = new HttpGet(link);
HttpResponse response = httpclient.execute(httpget);
int status = response.getStatusLine().getStatusCode();
// If receive anything but a 200 status, return a null input stream
if(status >= 200 && status < 300) {
logger.log("Successful request", LogManager.DEBUG);
return response.getEntity().getContent();
} else {
logger.log("Unsuccessful request: " + status, LogManager.DEBUG);
return null;
}
}
This is a subset of the series of URLs being hit:
17/29/2014 14:47:38 : Request Url: https://api.constantcontact.com/ws/customers/[Redacted]/contacts/24707/events/bounces 17/29/2014 14:47:39 : Request Url: https://api.constantcontact.com/ws/customers/[Redacted]/contacts/40549/events/bounces 17/29/2014 14:47:40 : Request Url: https://api.constantcontact.com/ws/customers/[Redacted]/contacts/50396/events/bounces 17/29/2014 14:47:41 : Request Url: https://api.constantcontact.com/ws/customers/[Redacted]/contacts/52330/events/bounces 17/29/2014 14:47:42 : Request Url: https://api.constantcontact.com/ws/customers/[Redacted]/contacts/12459/events/bounces 17/29/2014 14:47:43 : Request Url: https://api.constantcontact.com/ws/customers/[Redacted]/contacts/12512/events/bounces 17/29/2014 14:47:44 : Request Url: https://api.constantcontact.com/ws/customers/[Redacted]/contacts/12570/events/bounces 17/29/2014 14:47:45 : Request Url: https://api.constantcontact.com/ws/customers/[Redacted]/contacts/13201/events/bounces
17/29/2014 14:47:46 : Request Url: https://api.constantcontact.com/ws/customers/[Redacted]/contacts/14045/events/bounces
Everything is cool until that last URL, which causes a 500 error. Is there anything on our end that needs to change? Anything special about that particular contact that is causing a problem?
Best,
Zachary Telschow (AccuVal-LiquiTec)
... View more