Skip to content
This repository has been archived by the owner on May 21, 2022. It is now read-only.

could not obtain access token #2

Open
Sloth-on-meth opened this issue Apr 3, 2022 · 3 comments
Open

could not obtain access token #2

Sloth-on-meth opened this issue Apr 3, 2022 · 3 comments

Comments

@Sloth-on-meth
Copy link

Traceback (most recent call last):
File "/home/sam/placeNL/rPlace2022/PlaceNL.py", line 616, in
run()
File "/home/sam/placeNL/rPlace2022/PlaceNL.py", line 612, in run
asyncio.run(main())
File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/sam/placeNL/rPlace2022/PlaceNL.py", line 603, in main
await asyncio.gather(*tasks)
File "/home/sam/placeNL/rPlace2022/PlaceNL.py", line 530, in reddit_client_task
async with RedditPlaceClient(session, username, password, user_agent) as place_client:
File "/home/sam/placeNL/rPlace2022/PlaceNL.py", line 238, in aenter
raise Exception("Could not obtain access token.")
Exception: Could not obtain access token.

@SpiderDead
Copy link

@Sloth-on-meth What is the command you are using? And do you have the latest version?

@Sloth-on-meth
Copy link
Author

Python bot.py -u "username" "password"

@lrvdijk
Copy link
Collaborator

lrvdijk commented Apr 3, 2022

Do you have special characters in your password? In case you have a $ in your password, you'd have to escape it with like \$.

I've also updated the code, which should provide with more error information if it still doesn't work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants