nebulus | Posts: 4

Designer URL returns "error.routeNotFound" (.NET SDK)

0 votes
Hi there I'm just starting out with eSignLive and running through the .NET SDK samples. All the sample code I've tested so far executes fine except for the URL created for the Designer View. I tried for both the New and Classic views but neither works, for both I receive:
{"technical":"This route does not exist.","messageKey":"error.routeNotFound","message":"The requested resource does not exist on this server.","code":404,"name":"Resource Not Found"}
Classic Designer URL:
https://sandbox.esignlive.com/api/auth?authenticationToken={token}&target=https%3a%2f%2fsandbox.esignlive.com%2fapi%2fdesigner%2f{packageId}
New Designer URL:
https://sandbox.esignlive.com/auth?senderAuthenticationToken={token}&target=https://sandbox.esignlive.com/a/transaction/{packageId}/designer
Please advise what might cause this, I feel it must be something simple I'm overlooking somewhere. Cheers.

harishaidary | Posts: 1812

Reply to: Designer URL returns "error.routeNotFound" (.NET SDK)

0 votes
Hi, Are you able to retrieve a sender authentication token? Can you post an actual designer URL you are trying to build?

nebulus | Posts: 4

Reply to: Designer URL returns "error.routeNotFound" (.NET SDK)

0 votes
Hi Haris Thanks for the prompt response. With the following constructed URL I'm now receiving "Unauthorized Access: Your authentication token was incorrect." for New View:
https://sandbox.esignlive.com/auth?senderAuthenticationToken=ZDJhNzUyNWItN2ZhYS00YWVlLWE0NWMtNzVmNTQ2ZjQ2MWQx&target=https://sandbox.esignlive.com/a/transaction/ls-962JtcXALd0xzHkNRmrV9kkk=/designer
And for Classic View (after required sandbox login):
https://sandbox.esignlive.com/api/auth?authenticationToken=OWNiMTU1N2QtYmNmMC00NTA2LWEwODAtNTJkN2RjMWUwNzYx&target=https%3a%2f%2fsandbox.esignlive.com%2fapi%2fdesigner%2fWgx5GZ01Ea_38aFEN4KUIQ7ZHg4%3d
with same error as before:
{"technical":"This route does not exist.","messageKey":"error.routeNotFound","message":"The requested resource does not exist on this server.","code":404,"name":"Resource Not Found"}
Thanks for your help!

harishaidary | Posts: 1812

Reply to: Designer URL returns "error.routeNotFound" (.NET SDK)

0 votes
Here's the code that I am using:
EslClient eslClient = new EslClient("xxxxxxx==", "https://sandbox.esignlive.com/api");

PackageId packageId = new PackageId("NCyinOOW0o4XHqk8eV0e4TBDeSw=");

string token = eslClient.AuthenticationTokenService.CreateSenderAuthenticationToken(packageId);

Debug.WriteLine(String.Format("https://sandbox.esignlive.com/auth?senderAuthenticationToken={0}&target=https://sandbox.esignlive.com/a/transaction/{1}/designer", token, packageId.ToString()));
Are you sure you have the correct API key tied to your environment?

nebulus | Posts: 4

Reply to: Designer URL returns "error.routeNotFound" (.NET SDK)

0 votes
Hi Haris I only have one API Key. I looked more closely at the code you sent through compared with what I have and found that I was using the incorrect method to create the token (User vs Sender), and that resolved the issue for the New Designer View. Thanks!

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