Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APP_NOT_FOUND #339

Open
ijazdcm opened this issue Jul 25, 2023 · 0 comments
Open

APP_NOT_FOUND #339

ijazdcm opened this issue Jul 25, 2023 · 0 comments

Comments

@ijazdcm
Copy link

ijazdcm commented Jul 25, 2023

"Server responded with 404 - APP_NOT_FOUND - The referenced application does not exist

When using the production keys to generate the session unable to generate the session

It is returning "Server responded with 404 - APP_NOT_FOUND - The referenced application does not exist"

`
$YOTI_CLIENT_SDK_ID = 'OUR Production SDK ID';
$YOTI_PEM = 'Path of our PEM file';

$docScanClient = new DocScanClient($YOTI_CLIENT_SDK_ID, $YOTI_PEM);

    $sessionSpec = (new SessionSpecificationBuilder())
        ->withClientSessionTokenTtl(600)
        ->withResourcesTtl(90000)
        ->withUserTrackingId($user->id)
        ->withRequestedCheck(
            (new RequestedDocumentAuthenticityCheckBuilder())
                ->build()
        )
        ->withRequestedTask(
            (new RequestedTextExtractionTaskBuilder())
                ->withManualCheckAlways()
                ->build()
        )
        ->withSdkConfig(
            (new SdkConfigBuilder())
                ->withAllowsCameraAndUpload()
                ->withPrimaryColour('#2d9fff')
                ->withSecondaryColour('#FFFFFF')
                ->withFontColour('#FFFFFF')
                ->withPresetIssuingCountry('GBR')
                ->withSuccessUrl($successUrl)
                ->withErrorUrl($failureUrl)
                ->withPrivacyPolicyUrl('https://uat.dhigna.com/privacy-policy')
                ->withAllowHandoff(true)
                ->build()
        )
        ->withNotifications(
            (new NotificationConfigBuilder())
                ->withEndpoint('https://uat.dhigna.com/privacy-policy')
                ->withAuthToken('username:password')
                ->forResourceUpdate()
                ->forTaskCompletion()
                ->forCheckCompletion()
                ->forSessionCompletion()
                ->build()
        )
        ->build();

    $session = $docScanClient->createSession($sessionSpec);`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant