▲ 1 r/Devvit
Issue submitting a comment as user
I have an app with a button that submits a comment for their score to a stickied post. I followed the docs here.
Code:
const comment = await reddit.submitComment({
id: scoreComment.id,
text: createScoreComment(score, totalQuestions),
runAs: 'USER',
});
and permissions block:
{
"$schema": "https://developers.reddit.com/schema/config-file.v1.json",
"permissions": {
"reddit": {
"enable": true,
"scope": "user",
"asUser": ["SUBMIT_COMMENT"]
}
}, ... etc
I'm getting this error in both dev and prod with an approved app and installed to a non-dev subreddit:
grpc invocation failed with status 2; not allowed to run as user: appversion is not approved to run as user
Any ideas? The app's listing does not say it can comment as users, but I do have it in the permissions block. Is there another step required? Thanks!
u/shiftycc — 14 hours ago