cquest / tootbot

python bot to clone tweets to a mastodon account
GNU Affero General Public License v3.0
99 stars 35 forks source link

Can't log in #10

Closed 1337god closed 1 year ago

1337god commented 5 years ago

All the account information is correct but it just gives me "ERROR: First Login Failed!" every time, I even changed the password a couple of times already.

1337god commented 5 years ago

Tried switching from email to actual mastodon address but none work. I'm using https://botsin.space/

singlespeedfahrer commented 5 years ago

Had the same problem but could solve it with a change in tootbot.py (used my mail adress instead of username): (begins in line 82)

            mastodon_api.log_in(
                #username=mastodon,
                'MyLoginMail@Adress',
                [...]

Perhaps it was a change in the Mastodon module? Haven't figured out it yet.

Dinth commented 1 year ago

Thanks, the above worked for me. But also it looks like the passwords are mishandled, even if they are inside of quotes. Having a complex password with lots of special characters completely breaks the script

hmlendea commented 1 year ago

@singlespeedfahrer's solution works... but: Another thing to make sure is to have the email address in all lowercase letters. If there's any uppercase character, it will result in the dreaded ERROR: First Login Failed! error

myusuf3 commented 1 year ago

I am still getting this error even after we moved to using secret. any ideas? looks like secret has a newline in it.

myusuf3 commented 1 year ago

Seems like its failing on login in step specifically.