Skip to Content
GuidesSDK Troubleshooting

Troubleshoot the SDK

Start here when the package fails to install, the SDK returns an error, or an expected session doesn’t appear.

Confirm the package source

Open Tools and SDKs in the portal and compare your installed version with the approved package. For a development computer, download the language bundle and use its generated install commands. CI builds can use the public package registry commands. Keep adapter and Core versions compatible. See install errors and version conflicts.

See Tools and SDKs for download and CI instructions. An API key does not authorize package downloads.

Confirm the target environment

Check these values in the running application:

  • VERIPROOF_API_KEY contains the complete key for the intended application. The SDK derives the application identity from the key.
  • With workload identity, use the application ID and credential configuration documented for your SDK.
  • VERIPROOF_ENDPOINT is unset for hosted VeriProof or points to the assigned private ingest base URL.

Do not split a compound API key yourself. The SDK sends its components in the headers required by the ingest service.

Remove credentials and sensitive data from browser tests, command output, and diagnostic logs. If a key may have been exposed, rotate it from the portal.

Check the call and its result

Create the SDK client before the protected work. Call and await the Core SDK’s governed action or the supported adapter entry point. Inspect its returned status, reason, and session ID. If it stopped at the input check, the protected callback never ran. If the output was withheld, check whether the callback already performed a side effect before retrying.

Send pending evidence before shutdown

Use the shutdown method for the installed SDK. In Python, await vp.shutdown() attempts to send buffered evidence before closing. Exiting async with Veriproof.from_env() closes the client and leaves any buffered evidence undelivered. If your application also uses an OpenTelemetry exporter, end its spans and flush that exporter separately.

Check the Set up SDK tab

Open the application’s Set up SDK tab and check:

  • whether recent sessions arrived;
  • whether the error rate changed after deployment;
  • which fields are declared, inferred, or missing.

Send one non-production test session after each configuration change. This keeps the result easy to identify.

Review transport recovery

The SDK opens a circuit after repeated retryable failures and buffers work up to a bounded capacity. Defaults differ by language and version. Use diagnostic logs and the reference for the installed package instead of assuming one shared failure count or reset time.

Authentication and validation failures marked non-retryable require a configuration fix. Waiting will not correct a rejected credential or invalid request.

Confirm the effective control boundary

Open the application’s Control coverage view after a governed-action test.

  • Wrong environment: check that the API key and ingest endpoint belong to the intended application and deployment.
  • Invalid or revoked key: rotate the API key and update the running secret. Do not retry a static rejected key indefinitely.
  • Missing operation: place the protected work inside the documented framework entry point and send a stable operation name.
  • Observed activity: the adapter recorded telemetry but did not own execution. Add the documented manual wrapper or use an action-owning adapter.
  • Unsupported stream: buffer output until a supported complete-output check, or do not claim that the stream is governed.
  • Stale capability evidence: run a new allowed and denied action with the released package. Earlier sessions keep their original meaning.

If the denied action still creates its side effect, stop the rollout. Fix the owning integration boundary before changing the portal display.

Prepare diagnostic details

Include the package name and version, application ID, environment, approximate failure time, and a request or trace ID. Remove credentials, prompt content, response content, and personal data before sharing logs with an authorized reviewer.

Next steps

Last updated on