sickn33/agentic-awesome-skills · error · ForbiddenError
Not authorized
Error message
Not authorized
What it means
Error "Not authorized" thrown in sickn33/agentic-awesome-skills.
Source
Thrown at skills/graphql/SKILL.md:796
name: (user) => user.name,
// Private fields - check access
email: (user, _, { currentUser }) => {
if (!currentUser) return null;
if (currentUser.id === user.id) return user.email;
if (currentUser.role === 'ADMIN') return user.email;
return null;
},
phoneNumber: (user, _, { currentUser }) => {
if (currentUser?.id !== user.id) return null;
return user.phoneNumber;
},
// Or throw instead of returning null
privateData: (user, _, { currentUser }) => {
if (currentUser?.id !== user.id) {
throw new ForbiddenError('Not authorized');
}
return user.privateData;
}
}
};
### Non-null field failure nullifies entire parent
Severity: MEDIUM
Situation: You make fields non-null for convenience. A resolver throws or
returns null. The error propagates up, nullifying parent objects,
until the whole query response is null or errors out.
Symptoms:
- Queries return null unexpectedly
- One error affects unrelated fields
- Partial data can't be returnedView on GitHub (pinned to 58d857988f)
When it happens
Trigger: Thrown at skills/graphql/SKILL.md:796 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sickn33/agentic-awesome-skills@58d857988f (2026-08-26).
Data as JSON: /api/errors/6017d4305c18735e.
Report an issue: GitHub.