org_membership_required
The message text is shown in the example below.
| HTTP status | 403 |
type | permission_error |
| Retry? | No, not unchanged |
| Status | In the public catalog (error-envelope.ts) |
| Extra fields | none |
When it happens
The person who created the key left the organization or was removed.
Example
{
"error": {
"type": "permission_error",
"code": "org_membership_required",
"message": "The credential owner is not an active member of its organization.",
"param": null,
"request_id": "req_6f1c2a9e0b7d4c3a8e5f1b2d"
}
}How to fix it
- Create a new key owned by a current member, or better, by a service account that does not depend on any one person.
Detect it in code
err = resp.json().get("error", {})
if resp.status_code == 403 and err.get("code") == "org_membership_required":
log.warning("%s (%s)", err["message"], err["request_id"]) # fix the request; do not retry unchangedRelated
Was this page helpful?