Premium only subs are blocked from using Devvit apps
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- grpc, typescript
- Domain
- authorization, backend-api-design
Research direction
Start by reproducing the failure with a premium-only subreddit, a Devvit app using Devvit.addMenuItem, and the developers.reddit.com installation settings. Trace the gateway permission error and the installation-settings error; done means apps can be installed and menu actions can run for premium-only subreddits without either error.
Written by the indexing model from the issue text.
Description
Details
Premium only subs (easiest to create via old reddit) can not use devvit apps.
Repro:
- Create a premium only sub on old.reddit using a normal user account
- Install any app from http://developers.reddit.com|developers.reddit.com that is known to add a sub menu item (eg community-hub app) to the premium only sub.
- Note that a “Something went wrong” message appears when visiting the app’s installation settings for that sub on http://developers.reddit.com|developers.reddit.com
- Note that an error message appears when the sub menu item is triggered. Decoding the error from browser console via base64 reveals a grpc permissions error
Additional info
Discord message: _Hi <@892039441093365801>, I tried installing a Devvit app on a Premium only sub (the kind you can only seem to make via old Reddit) and got an error from your gateway (decoded from base64 and redacted where indicated) when I tried to run a Devvit sub menu item action:
grpc-message:permission denied for subreddit <redacted id>, type: GOLD_ONLY grpc-status:7
Also, the app settings return a "Something went wrong" when I try visiting them on http://developers.reddit.com|developers.reddit.com. I used more than 1 premium only sub to verify its not a sub specific issue.
Suggested repro steps:
- go to old reddit using an non admin test account
- make a new "premium only" sub (or use your admin account to change the type of an existing sub to premium only)
- install to the premium only sub any random app from http://developers.reddit.com|developers.reddit.com that uses Devvit.addMenuItem to add a menu item
- attempt to trigger the menu item
- note error identical to one I have shown (bar text padding) in network tab of browser dev tools
- visit http://developers.reddit.com|developers.reddit.com community specific app page (e.g. https://developers.reddit.com/r/<your-sub>/apps/<name-of-app>) and note the error under installation settings.
I previously tried to reach out via modmail (https://www.reddit.com/message/messages/2gtch6k, https://www.reddit.com/message/messages/2jh2rs7) but the message must have gotten lost somewhere.
Is there any way you could reach out to see if this is an issue that can be fixed?_
Message author: triplebyte
Discord link: https://discord.com/channels/1050224141732687912/1050227353311248404/1342529439543590973
- Dominant language
- TypeScript
- Stars
- 210
- Forks
- 88
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from reddit/devvit
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
requestExpandedMode(event, "game") does not switch inline webview to the game entrypoint in Playtest Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Similar issues
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 70/100