Quick summary
The Suki Headless SDK exposes error codes for authentication, session lifecycle, and other operations. All errors include an error code, name, and optional reason to help you diagnose issues and implement the correct handling logic.
Use this guide to understand what each error code means and how to resolve it in your application.
Use this guide to understand what each error code means and how to resolve it in your application.
Authentication Errors
Session Lifecycle Errors
Interoperability Errors
Pausing Session
Resuming Session
Cancelling Session
Submitting Session
Context Update Errors
Authentication errors (AuthError)
These errors occur during user registration, sign-in, or token updates.Session lifecycle errors
These errors occur when you attempt to start, pause, resume, cancel, or submit an ambient session.Starting a session (StartSessionFailed)
Pausing a session (PauseSessionFailed)
Resuming a session (ResumeSessionFailed)
Canceling a session (CancelSessionFailed)
Submitting a session (SubmitSessionFailed)
Interoperability errors
These errors occur when you create an interoperable ambient session, clear a remote blocking session, or list notes for an EMR encounter.Session already exists (sessionAlreadyExists)
session.create() fails with this reason when another Suki product already has an active ambient session for the same provider and EMR encounter. The HTTP status is 409.
Some JSDoc comments refer to
metadata.blockingSessionId. The runtime field is additionalProperties. Refer to Handle ambient session conflicts.Cancel or end remote session failed
These errors occur whencancelRemote or endRemote fails while you clear a blocking remote session.
Get encounter info failed (getEncounterInfoFailed)
This error occurs when useGetEncounterInfo or PlatformClient.getEncounterInfo cannot list notes for an EMR encounter.
Context update errors (ContextUpdateFailed)
These errors occur when you callsetSessionContext to update patient information or visit metadata during an active session.