• kishorekumar Appikonda
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
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

<apex:page standardController="Account" extensions="TestController" showHeader="false" standardStylesheets="false" contentType="application/msWord#TestDocument.doc" cache="true" >
..............................
User-added image
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