Invalid authorization
If Endor Labs can’t verify your access token (for example, it’s empty or expired), Endor Labs terminates the request and returns 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 lacks the required permissions for a namespace or operation, Endor Labs terminates the request and returns an unauthorized 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, Endor Labs returns the following response if you request findings with the field mask uui instead of uuid: