Error authenticating to OneSpan: 404 - Not Found
Tuesday, September 28, 2021 at 04:50pmI am working through the OneSpan Sign APEX SDK and running the getSessionId() is giving me this result:
OneSpanRESTAPIHelper.OneSpanRestAPIHelperException: Error authenticating to OneSpan: 404 - Not Found - {"messageKey":"error.notFound.userNotFound","technical":"Could not find user with uid 'aXqJ5kBWyi0X'","message":"The specified user cannot be found.","code":404,"name":"Resource Not Found"}
I created the custom setting called Main and used the API key from here: https://sandbox.esignlive.com/a/admin/apiaccess
I have the OneSpan managed package installed, could there be conflicts with that?
Reply to: Error authenticating to OneSpan: 404 - Not Found
Tuesday, September 28, 2021 at 04:52pmAlso, I am using this as the end point in the custom setting record: https://sandbox.e-signlive.com/api
Reply to: Error authenticating to OneSpan: 404 - Not Found
Wednesday, September 29, 2021 at 07:25amI am still stuck.
I saw another post on this forum where the user tried another account and got past this error. So, I created a brand new sandbox account and used the new API key and I get the same error but with a different 'uid' in the error. Is there something out of sync with my user account?
OneSpanRESTAPIHelper.OneSpanRestAPIHelperException: Error authenticating to OneSpan: 404 - Not Found - {"technical":"Could not find user with uid 'YXnaGk1R06oJ'","messageKey":"error.notFound.userNotFound","code":404,"name":"Resource Not Found","message":"The specified user cannot be found."}
Reply to: Error authenticating to OneSpan: 404 - Not Found
Wednesday, September 29, 2021 at 07:44amI figured it out. Silly issue. After trying postman and seeing success I noticed that the installation instructions on github has a typo for the api endpoint.
It says:Endpoint = https://sandbox.e-signlive.com/api (SANDBOX) || https://apps.e-signlive.com/api (PROD)
But it should say Endpoint = https://sandbox.esignlive.com/api (SANDBOX) || https://apps.esignlive.com/api (PROD)
No hyphen should be in the URL.
Source: GitHub - KadenceCollective/onespan-sign-apex-sdk: Apex SDK for OneSpan Sign
Reply to: I figured it out. Silly…
Wednesday, September 29, 2021 at 09:01amHi Peter,
Glad you figured it out! Yeah, it could be tricky that the Git Readme file said "sandbox.e-signlive.com". Actually it's not incorrect, because there does exist an instance with this URL which is so called US1 sandbox/production, versus US2 sandbox/production where the URL excludes the hyphen.
Duo
Reply to: Hi Peter, Glad you…
Wednesday, September 29, 2021 at 10:12amGot it! Thanks for clarifying!