:x: tRPC failed on posts.create: Unauthorized -- from T3 Stack Tutorial tutorial
NOTICE: Unauthorized, not UNAUTHORIZED as thrown in enforceUserIsAuthed. Am confused as "Unauthorized" not found in files
Followed most of the tutorial, then github. PrivateProcedure resolves as valid userID not null.
also switched ssg for createServerSideHelpers()
and white bg and snapped left in npm run dev, but fine on deployment; not sure why 🧐
1 Reply
narrowed it down to
const { success } = await ratelimit.limit(authorId);
AHA It was invalid upstash credentials. my token was set to masked * and not the actual secret
Solved! Except for the styles :/