louisgrasset / touitomamout

Touitomamout is an easy way to synchronize your Twitter's tweets 🦤 to Mastodon 🦣 and Bluesky post ☁️ (also known as Twitter to Mastodon & Bluesky crossposter)
https://hub.docker.com/r/louisgrasset/touitomamout
GNU Affero General Public License v3.0
138 stars 7 forks source link

# character in TWITTER_PASSWORD gets truncated #198

Open rzca opened 1 month ago

rzca commented 1 month ago

Describe the bug If you set TWITTER_PASSWORD to something like xX123#abc, somewhere in the .env parsing or later it silently truncates the password to "xX123" and then fails to authenticate with {"errors":[{"code":399,"message":"Wrong password!"}]}

To Reproduce Steps to reproduce the behavior:

  1. put a # in your TWITTER_PASSWORD
  2. fail to authenticate upon running

Expected behavior Special characters are passed through. Perhaps .env files can be escaped using double quotes if the problem is there.

rzca commented 1 month ago

I would be happy to submit a fix, just lmk @louisgrasset

louisgrasset commented 2 weeks ago

I confirm having a # in your password makes the .env parsing to tail. You can fix parsing by wrapping your password with quotes "pass" or 'pass'.

I'm still investigating the issue preventing the auth against twitter

louisgrasset commented 1 week ago

I opened an issue on the repo Touitomamout relies on to connect with Twitter https://github.com/the-convocation/twitter-scraper/issues/111