79637468

Date: 2025-05-25 07:54:03
Score: 1
Natty:
Report link

After some debugging, I seem to have figured out the problem. The issue in the above code lies with the state parameter in reddit.auth.url(). I tried with different strings other than "..." and avoided using any special character and the request worked fine.

My current code:

 _auth_url = reddit.auth.url(
                        scopes=["identity"],
                        state="authAccess",
                        duration="permanent"
 )

Probably It has something to do with how PRAW validates the parameters at the backdrop.

Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ujzwalp