Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong but verified passwrd #21

Open
solertoyo opened this issue Mar 22, 2024 · 6 comments
Open

wrong but verified passwrd #21

solertoyo opened this issue Mar 22, 2024 · 6 comments

Comments

@solertoyo
Copy link

erro

`Traceback (most recent call last):
  File "main.py", line 70, in <module>
    main()
  File "main.py", line 66, in main
    atpt.login(USERNAME, PASSWORD)
  File "/home/ant1/.local/lib/python3.8/site-packages/atprototools/__init__.py", line 19, in login
    raise ValueError("No access token, is your password wrong?")
ValueError: No access token, is your password wrong?

`

@celozaga
Copy link

same issue

@veroandi
Copy link

I've just checked and and it's working in Sep 26 2024.

Tip:
BSKY_USERNAME -> don't put the "@" before your username, so it's "usernameX.bsky.social‬"

@andreikobe
Copy link

same issue!

@cpbl
Copy link

cpbl commented Nov 25, 2024

Same issue. username is correct. I checked my password. I'm setting the password in BASH using export PASSWORD="soi$oiu#lkjlas!"
(that's not my real password), understanding that those special characters do not need to be escaped in this context.

When I edited main.py and inserted username/password directly, there, rather than appealing to the environment variables, the upload worked.

@Gsuss
Copy link

Gsuss commented Jan 24, 2025

Somehow related to this issue and, as this is the first result it comes in Google when you search for the issue, allow me to say that if you're using an alternative PDS (not bsky.app) for your account, you need to change the file __init__.py from the atprototools package installed via pip.

In my case, because I created a venv to run the script, that file is located in /root/.venvs/MyEnv/lib/python3.11/site-packages/atprototools/__init__.py.

The exact lane to change is ATP_HOST = "https://bsky.app" for ATP_HOST = "https://YOUR_PDS_URL", line number 3.

@webash
Copy link
Contributor

webash commented Jan 26, 2025

Use an app password. You can get one from the security settings:
https://bsky.app/settings/app-passwords

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

No branches or pull requests

7 participants