Stuart Grimshaw Posted December 2 Posted December 2 I'm trying to create a new topic on our forum via GraphQL and I get the following error: { "errors": [ { "message": "NO_FORUM", "extensions": { "category": "clienterror" }, "locations": [ { "line": 3, "column": 9 } ], "path": [ "mutateForums", "createTopic" ] } ], "data": { "mutateForums": { "createTopic": null } } } Here's the mutator I'm sending, line 3 column 9 is the first "c" in "createTopic" mutation MutateForums { mutateForums { createTopic( forumID: "125" title: "Blackburn Rovers Fans: Share Your Ticketing Experiences in the BRFCS Survey" content: "Help Us Understand Fan Experiences with Ticketing ?️" ) { id title } } } If I cut & paste that into Postman using the same auth details it works as expected & I get the ID & title back.
teraßyte Posted December 2 Posted December 2 Try passing forumID as an integer instead of a string. 🤔 Marc 1
Stuart Grimshaw Posted December 2 Author Posted December 2 No, I get the same error. It works as a string from Postman too.
Stuart Grimshaw Posted December 2 Author Posted December 2 I think I know what the issue is, as I'm using client credentials rather than a specific users credentials I'm effectively acting as a guest, which doesn't have access to the forum in question. Is it possible to impersonate a user? The user I want to create the post is one of our accounts rather than an actual user. A system user with the forum branding if you will. The other option is to use resource Owner Password Credentials, but that's deprecated according to the OAuth2 spec. Daniel F 1
Solution Stuart Grimshaw Posted December 6 Author Solution Posted December 6 On 12/2/2024 at 11:23 PM, Stuart Grimshaw said: The other option is to use resource Owner Password Credentials, but that's deprecated according to the OAuth2 spec. This is what I did in the end.
Recommended Posts