Skip to content

ClientError: Mutation failed due to permission errors #48

@khanhthanhdev

Description

@khanhthanhdev

'''error - ClientError: Mutation failed due to permission errors: {"response":{"errors":[{"message":"Mutation failed due to permission errors","extensions":{"code":"403","failedActions":[{"action":"create","model":"Comment","stage":"DRAFT"},{"action":"update","model":"Post","stage":"DRAFT"}]}}],"data":null,"extensions":{"requestId":"cl87cg1f45rwc0ezs00jhmkep"},"status":403,"headers":{}},"request":{"query":"\n mutation CreateComment($name: String!, $email: String!, $comment: String!, $slug: String!) {\n createComment(data: {name: $name, email: $email, comment: $comment, post: {connect: {slug: $slug}}}) { id }\n }\n ","variables":{"name":"Trần Khánh Thành","email":"thanhkt27507@gmail.com","comment":"test comment","slug":"twg-la-gi"}}}
at D:\test-blog\project_graphql_blog\node_modules\graphql-request\dist\index.js:254:31
at step (D:\test-blog\project_graphql_blog\node_modules\graphql-request\dist\index.js:63:23)
at Object.next (D:\test-blog\project_graphql_blog\node_modules\graphql-request\dist\index.js:44:53)
at fulfilled (D:\test-blog\project_graphql_blog\node_modules\graphql-request\dist\index.js:35:58)'''

I clone project and follow the video at 2:47:00 . How to fix this error. I'm trying to fix this bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions