This error occurs when an unexpected issue arises on the client, Leyr, or EMR side that hasn't been previously encountered and mapped in our system. The status codes vary depending on the error source and type.
{
"code": "UNKNOWN_ERROR",
"type": "https://docs.leyr.io/api/error-handling/unknown_error",
"title": "Unknown error",
"status": 401,
"detail": "An unmapped error has occurred. Please contact our support team for immediate investigation.",
"instance": "a7dd57f6-7848-4dc5-b9f8-187fb8ec6275"
}
This error message is tricky and is rather rare, as Leyr maintains a comprehensive mapping of both internally and EHR error messages.
However, such error could happen if there is an error that was not documented by EHR, or if there is an unexpected change in the API.
In all cases, we treat these errors as high priority for investigation.
To help resolve this error:
detail field in the response body. For EHR-originated errors, this field may contain valuable description of the request issues.instance ID from the error response