praw-dev / praw

PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

Home Page:http://praw.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

POST /api/v1/token

hasandiwan opened this issue · comments

Describe the Bug

n/a

Desired Result

What is this supposed to look like?

Code to reproduce the bug

scopes = ["*"]
    reddit = praw.Reddit(
        redirect_uri="https://units-helper.d8u.us/reddit/callback",
        client_id=load_properties().get("api.reddit.client"),
        client_secret=load_properties().get("api.reddit.secret"),
        user_agent="units/1.0 by me",
        username=args.get("username"),
        password=args.get("password"),
        scopes=scopes,
    )

    submission = reddit.submission(url=args.get("post"))
    if not submission:
        submission = reddit.comment(url=args.get("post"))

My code does not include sensitive credentials

  • Yes, I have removed sensitive credentials from my code.

Relevant Logs

[2024-03-25 06:42:40 +0000] [37429] [DEBUG] PATCH /reddit/fix
[2024-03-25 06:43:11 +0000] [37426] [CRITICAL] WORKER TIMEOUT (pid:37429)
[2024-03-25 06:43:11 +0000] [37429] [INFO] Worker exiting (pid: 37429)
[2024-03-25 06:43:11 +0000] [37426] [ERROR] Worker (pid:37429) exited with code 1
[2024-03-25 06:43:11 +0000] [37426] [ERROR] Worker (pid:37429) exited with code 1.
[2024-03-25 06:43:11 +0000] [37478] [INFO] Booting worker with pid: 37478
[2024-03-25 06:43:14 +0000] [37478] [DEBUG] POST /api/v1/access_token

This code has previously worked as intended

No

Operating System/Environment

FreeBSD 14.0-RELEASE-p3

Python Version

Python 3.11.8

PRAW Version

git+ssh://git@github.com/praw-dev/praw.git@b70e8169d9258bb936959fded8ee84630c8259ae#egg=praw

Links, references, and/or additional comments?

No response

This is a place to open issues and feature requests for PRAW. This is not a place to ask for help with your code that uses PRAW. Consider posting your question in r/redditdev for assistance.