HTTP Query Issue for Docusign

Hi All,

I am trying to use HTTP Query to get the status of document but I am getting following error:



[success:false,result:,error:[code:[category:0,namespace:1,detail:0],title:HTTP error connecting to demo.docusign.net/.../accounts 401 Unauthorized,detail:No details available]]


I am using the following expression:

a!httpQuery(
url: "demo.docusign.net/.../accounts",
method: "GET",
headers: a!httpHeader("name", a!scsField("httpvalue", "value", false)),
queryParameters: a!httpQueryParameter("IntegratorKey", a!scsField("integratorkey", "integrator", false)),
basicAuthenticationCredentials: a!httpAuthenticationBasic(a!scsField("Rishu_Username", "Username", false()),
a!scsField("Rishu_Password", "Password", false()),true())
)

Can anyone guide where I am getting it wrong?

Thanks
Rishu

OriginalPostID-243720

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    @rishub As per your above mention code snippet, if the Headers, method and Credential Information's are provided correctly, then in such case i recommend you try executing the same URL from Web Browser along with ?envelope_ids: Your_Value, and please check whether it's returning the Proper response or not, if No that means there is some mismatch of request data. So in such case i recommend you to check about following

    => find out what your code is actually sending to API, and
    => find out what the API is expecting you to send

    I hope this will help you to debug the above problem statement..
Reply
  • 0
    Certified Lead Developer
    @rishub As per your above mention code snippet, if the Headers, method and Credential Information's are provided correctly, then in such case i recommend you try executing the same URL from Web Browser along with ?envelope_ids: Your_Value, and please check whether it's returning the Proper response or not, if No that means there is some mismatch of request data. So in such case i recommend you to check about following

    => find out what your code is actually sending to API, and
    => find out what the API is expecting you to send

    I hope this will help you to debug the above problem statement..
Children
No Data