EXLTEC | Posts: 3

Cannot connect

0 votes
Hi, I am trying the sample application. I replaced the API Key by mine, and change the Environnement URL
public class Esign { public static final String API_KEY = "RFAPI_SAMPLE_EXAMPLE_3kzbVrQUU1VMg=="; public static final String API_URL = "https://sandbox.e-signlive.ca/api"; // USE https://apps.e-signlive.com/api FOR PRODUCTION private static final String DATE_FORMAT = "EEE, d MMM yyyy HH:mm:ss Z";
Here is the result when I run it...
Exception in thread "main" com.silanis.esl.sdk.internal.EslServerException: Could not create a new package Exception: HTTP POST on URI https://sandbox.e-signlive.ca/api/packages resulted in response with status code: [401, Unauthorized]. Optional details: {"messageKey":"error.unauthorised.noSession","entity":null,"technical":null,"packageId":null,"message":"Failed to retrieve Session","code":401,"name":"Unauthorized"} at com.silanis.esl.sdk.service.PackageService.createPackage(PackageService.java:55) at com.silanis.esl.sdk.EslClient.createPackage(EslClient.java:220) at Esign.main(Esign.java:45) Caused by: com.silanis.esl.sdk.internal.RequestException: HTTP POST on URI https://sandbox.e-signlive.ca/api/packages resulted in response with status code: [401, Unauthorized]. Optional details: {"messageKey":"error.unauthorised.noSession","entity":null,"technical":null,"packageId":null,"message":"Failed to retrieve Session","code":401,"name":"Unauthorized"} at com.silanis.esl.sdk.internal.RestClient.execute(RestClient.java:195) at com.silanis.esl.sdk.internal.RestClient.post(RestClient.java:105) at com.silanis.esl.sdk.service.PackageService.createPackage(PackageService.java:52) ... 2 more
I double even triple check my API KEY, i recreated another account. Same result.. Any idea? Java Result: 1

harishaidary | Posts: 1812

Reply to: Cannot connect

0 votes
Hey, Are you registered on Canadian or US sandbox?

EXLTEC | Posts: 3

Reply to: Cannot connect

0 votes
I tried with both... https://sandbox.e-signlive.com/api https://sandbox.e-signlive.ca/api"; Same result. Thanks for answering

harishaidary | Posts: 1812

Reply to: Cannot connect

0 votes
No worries. I forgot to ask you, are you on the new sandbox or the old one? https://sandbox.e-signlive.com/api vs https://sandbox.esignlive.com/api (Notice the hyphen). If you are on the new one, remove the hyphen from "e-signlive".

EXLTEC | Posts: 3

Reply to: Cannot connect

0 votes
I tried with both without sucess... and with the same error message. Exception in thread "main" com.silanis.esl.sdk.internal.EslServerException: Could not create a new package Exception: HTTP POST on URI https://sandbox.e-signlive.com/api/packages resulted in response with status code: [401, Unauthorized]. Optional details: {"messageKey":"error.unauthorised.noSession","technical":null,"packageId":null,"entity":null,"message":"Failed to retrieve Session","code":401,"name":"Unauthorized"} at com.silanis.esl.sdk.service.PackageService.createPackage(PackageService.java:55) at com.silanis.esl.sdk.EslClient.createPackage(EslClient.java:220) at com.esignlive.example.SimpleCreateAndSendPackage.main(SimpleCreateAndSendPackage.java:42) Caused by: com.silanis.esl.sdk.internal.RequestException: HTTP POST on URI https://sandbox.e-signlive.com/api/packages resulted in response with status code: [401, Unauthorized]. Optional details: {"messageKey":"error.unauthorised.noSession","technical":null,"packageId":null,"entity":null,"message":"Failed to retrieve Session","code":401,"name":"Unauthorized"} at com.silanis.esl.sdk.internal.RestClient.execute(RestClient.java:195) at com.silanis.esl.sdk.internal.RestClient.post(RestClient.java:105) at com.silanis.esl.sdk.service.PackageService.createPackage(PackageService.java:52) ... 2 more

harishaidary | Posts: 1812

Reply to: Cannot connect

0 votes
What is the email address associated with your sandbox account? I will have a look at it on my side.

romainlefebvre | Posts: 5

Reply to: Cannot connect

0 votes
Hi Haris, Exact same problem here with the Canadian sandbox. Could you please contact me in PM too see what's wrong. Thanks, Romain

harishaidary | Posts: 1812

Reply to: Cannot connect

0 votes
Hi Romain, You can send me an email to [email protected] and I'll be more than happy to help you :)

rsingh | Posts: 1

Reply to: Cannot connect

0 votes
Could you please tell what was the fix for this issue, I am also facing same problem.

harishaidary | Posts: 1812

Reply to: Cannot connect

0 votes
Hi there, Sorry I missed your reply. Make sure when using the eslClient that you have the correct URL. It should be the same as the one you use to login to your eSignLive account.

r3pq | Posts: 3

Reply to: Cannot connect

0 votes
Hi, I'm getting the same issue. Im trying to use Postman - (POST https://sandbox.esignlive.com/api/packages/) and got the following: { "messageKey": "error.unauthorised.noSession", "message": "Failed to retrieve Session", "code": 401, "name": "Unauthorized" } How to resolve this? Thanks

harishaidary | Posts: 1812

Reply to: Cannot connect

0 votes
Hi, Can you share screenshots of your postman? I would like to see your headers (please cross out your API key) and the payload you are trying to send to esignlive. Thanks,

harishaidary | Posts: 1812

Reply to: Cannot connect

0 votes
The header for the API key should be "Authorization" and not "Auth". Try that and let me know.

r3pq | Posts: 3

Reply to: Cannot connect

0 votes
It works! :) Thanks Haris!

Duo_Liang | Posts: 3776

Reply to: Cannot connect

0 votes
Hi bilal, Thanks for making the post! Our support team has been aware of this connection issue. They will reply to your ticket as long as there's any updates. Duo

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off