Closed pnpninja closed 1 year ago
A 403 error means you do not have access. Either the account does not have flair permissions on the subreddit or you are not logged in properly.
Closed as this isn't an issue/bug with PRAW.
in my case, this error was fixed by using subreddit.flair.link_templates instead of subreddit.flair.templates
which is confusing, because the link_templates
flairs
also work with text posts, not just with link posts
Describe the Bug
hi everyone m trying to run this code but it returns the error
Getting - prawcore.exceptions.Forbidden: received 403 HTTP response
(not a auth error)
Desired Result
### Code to reproduce the bug ```Python for flair in reddit.subreddit("minefortest").flair(limit=None): print(flair) ``` ### The `Reddit()` initialization in my code example does not include the following parameters to prevent credential leakage: `client_secret`, `password`, or `refresh_token`. - [X] Yes ### Relevant Logs ```Shell None ``` ### This code has previously worked as intended. Yes ### Operating System/Environment macOS Monterey 12.5.1 ### Python Version 3.7.16 ### PRAW Version 7.7.0 ### Prawcore Version 2.3.0 ### Anything else? _No response_