You need to sign in to do that
Don't have an account?
kishorekumar Appikonda
FATAL_ERROR System.CalloutException: Unexpected end of file from server
Hi,
When i hit the Third-party (Echosign) accessing through REST API,getting below erroe message :
System.CalloutException: Unexpected end of file from server.
Please find below are my REST Code:
String strendpoint = 'https://api.na1.echosign.com:443/api/rest/v3/agreements/3AAABLblqZhB5nTaAjhiCG_DBIuGAg85D7sAdm3wV1Q3UN6sSY4-We9ZqnxyfoMgpuYYhgRPh0hmGjT2cILvuWwwsKhrLbLNG';
HttpRequest hreq = new HttpRequest();
hreq.setEndpoint(strendpoint);
hreq.setHeader('Content-Length',String.valueof(strendpoint.length()));
hreq.setHeader('Content-Type','application/json;charset=UTF-8');
hreq.setMethod('GET');
hreq.setHeader('Access-Token','3AAABLblqZhDlrVcpsTnquJTsgcG2E4n7qQLt8Oo3fTTU9x8PT-HB_qe1TGJ2NkzbI_WnK3JJXWqlb9OVVSkGPKwpgDqUXQVK');
hreq.setTimeout(120000);
Http htp= new Http();
HttpResponse hres = htp.send(hreq);
System.Debug('hres========'+hres.getBody());
Pleasge give your valuable suggesstions, How to resolve this issue ??
Regards,
Kishore
When i hit the Third-party (Echosign) accessing through REST API,getting below erroe message :
System.CalloutException: Unexpected end of file from server.
Please find below are my REST Code:
String strendpoint = 'https://api.na1.echosign.com:443/api/rest/v3/agreements/3AAABLblqZhB5nTaAjhiCG_DBIuGAg85D7sAdm3wV1Q3UN6sSY4-We9ZqnxyfoMgpuYYhgRPh0hmGjT2cILvuWwwsKhrLbLNG';
HttpRequest hreq = new HttpRequest();
hreq.setEndpoint(strendpoint);
hreq.setHeader('Content-Length',String.valueof(strendpoint.length()));
hreq.setHeader('Content-Type','application/json;charset=UTF-8');
hreq.setMethod('GET');
hreq.setHeader('Access-Token','3AAABLblqZhDlrVcpsTnquJTsgcG2E4n7qQLt8Oo3fTTU9x8PT-HB_qe1TGJ2NkzbI_WnK3JJXWqlb9OVVSkGPKwpgDqUXQVK');
hreq.setTimeout(120000);
Http htp= new Http();
HttpResponse hres = htp.send(hreq);
System.Debug('hres========'+hres.getBody());
Pleasge give your valuable suggesstions, How to resolve this issue ??
Regards,
Kishore
Hi kishorekumar Appikonda,
The receiving server had a firewall blocking the salesforce IP addresses. Persuaded them to temporarily give access and the callout worked straight away.... hope this info is useful to others in the community!
Thanks for reply ..I dont have any Salesforce IP restrictions to my org . Even i tested through my personal org, getting the same error message .