Error: Not Authorised!
See original GitHub issuePlayed all the steps in this example https://github.com/prisma/prisma-examples/tree/master/node/graphql-auth but upon request
mutation {
writeComment(
postId: "ck0s5cssnii0f0b175f5umhjx"
text: "I like turtles 🐢"
) {
id
text
}
}
I get this error
Error: Not Authorised!
at normalizeOptions (/Users/playra/prisma-examples/node/graphql-auth/node_modules/graphql-shield/dist/shield.js:25:44)
at shield (/Users/playra/prisma-examples/node/graphql-auth/node_modules/graphql-shield/dist/shield.js:38:31)
at Object.<anonymous> (/Users/playra/prisma-examples/node/graphql-auth/src/permissions/index.js:21:21)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:643:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Module.require (internal/modules/cjs/loader.js:683:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/Users/playra/prisma-examples/node/graphql-auth/src/index.js:4:25)
Updated HTTP HEADERS
{
"Authorization": "Bearer ….”
}
But request
{
me {
id
name
email
}
}
with the same HTTP HEADERS works. What is the problem?

Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Error message: You are not authorized to access this ...
After successfully authenticating to the portal, the following error is immediately displayed: You are not authorized to access this application. For assistance ...
Read more >Why am I receiving a message that I am 'not authorized' to ...
A message saying that you are not authorized, need to re-authenticate, or that there was an authentication error, comes directly from your TV...
Read more >Fix the 'You are not authorized to view this page' error message
"You are not authorized to view this page" appears when configuring the Messaging Security Agent (MSA) of Worry-Free Business Security (WFBS) running on...
Read more >How to troubleshoot the "You are not authorized to start ... - IBM
An error message is displayed that reads "Authorization Error: Ensure that you are authorized to access and run this client-side human service, ...
Read more >Not Authorized" message when trying to access an assignment?
The reason you are getting an “Error: Not Authorized” message when trying to access an assignment is because the link to the assignment...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For two years, observe your project, it is shocking that you do not have testers who will verify what you write in the documentation. @nikolasburk please answer
@nikolasburk Thank you I switched to AWS Amplify, which is very pleased.