Invalid authorization
If Endor Labs cannot verify your access token, for example, if it is empty or if it has expired, Endor Labs will terminate the request and you will receive an invalid authorization response.Remediation
Try creating a new token or, if you have a valid API key and secret in your~/.endorctl/config.yaml file, unsetting the environment variable (unset ENDOR_TOKEN).
For more information, see Authentication.
Permission Denied
If your access token does not have the required permissions to access a namespace or perform an operation, Endor Labs will terminate the request and you will receive an unauthorized request response.Remediation
Check the value of theENDOR_NAMESPACE environment variable, the variable with the same name in the ~/.endorctl/config.yaml file, or the API endpoint URL.
For more information, see Authentication.
Context deadline exceeded
If it takes too long to process an API request, Endor Labs will terminate the request and you will receive a timeout response and a “context deadline exceeded” message.Remediation
You can increase the request timeout limit or you can try to simplify your request. For instance, if you are requesting 100 items per page, try requesting fewer items. For more information, see Best practices.Invalid argument
If a request is missing a required field, or includes a non-existent field, Endor Labs will return an “invalid argument” response. The responsemessage field contains details about the error, such as the field name and the specific problem with it.
For example, the following response is returned if you request all findings with the field mask uui instead of uuid: