sekai-soft / guide-nitter-self-hosting

A guide for self-hosting a Nitter instance
MIT License
154 stars 8 forks source link

Getting a 2FA question, but I didn't enabled it. #8

Closed MeneerHeijpaal closed 8 months ago

MeneerHeijpaal commented 8 months ago

When I run the command to obtain credentials for my burner/temporary Twitter account:

docker compose run --build nitter-auth

I get the following error:

┌──(root@nitter)-[/opt/docker/nitter/freebird]
└─# docker compose run --build nitter-auth                                                                                                                                            
WARN[0000] The "TS_AUTHKEY" variable is not set. Defaulting to a blank string. 
WARN[0000] The "TS_AUTHKEY" variable is not set. Defaulting to a blank string. 
WARN[0000] The "TS_AUTHKEY" variable is not set. Defaulting to a blank string. 
[+] Building 0.8s (9/9) FINISHED                                                                                                                                           docker:default
 => [nitter-auth internal] load build definition from Dockerfile                                                                                                                     0.0s
 => => transferring dockerfile: 428B                                                                                                                                                 0.0s 
 => [nitter-auth internal] load metadata for docker.io/library/python:3.12-slim                                                                                                      0.7s 
 => [nitter-auth internal] load .dockerignore                                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                                                      0.0s 
 => [nitter-auth 1/4] FROM docker.io/library/python:3.12-slim@sha256:4709e68a0bf8f2cae17f2693b4125aa3b1a689ae72918e276ab0013a4c2356a6                                                0.0s 
 => [nitter-auth internal] load build context                                                                                                                                        0.0s 
 => => transferring context: 66B                                                                                                                                                     0.0s 
 => CACHED [nitter-auth 2/4] WORKDIR /app                                                                                                                                            0.0s 
 => CACHED [nitter-auth 3/4] COPY . /app                                                                                                                                             0.0s 
 => CACHED [nitter-auth 4/4] RUN pip install requests                                                                                                                                0.0s 
 => [nitter-auth] exporting to image                                                                                                                                                 0.0s 
 => => exporting layers                                                                                                                                                              0.0s 
 => => writing image sha256:5cbe97a5938bdb978e871bd676f8a147af4470ad6b912cd5c835902117faf2f6                                                                                         0.0s 
 => => naming to docker.io/library/freebird-nitter-auth                                                                                                                              0.0s 
Twitter username: <HERE I ENTER MY USERNAME>                                                                                                                                                        
Twitter password: <HERE I ENTER MY PASSWORD> 
TW_ANDROID_BASIC_TOKEN=Basic M25....
bearer_token=bearer AAAAAAAAAAAAAAAAAAAA......
guest_token=1767...
Requesting Bestätigungscode:

At the end it states that I have to enter a Bestätigungscode, this means Confirmation Code.

I haven't enabled the 2FA for this burner account, but the account is new. Maybe that could be a problem?

MeneerHeijpaal commented 8 months ago

Follow-Up: It turns out that this happens with fresh accounts. The conformation code is send to the email account which was used at sign-up.

KTachibanaM commented 8 months ago

I am not sure about the mechanism that triggers 2FA code either. Did you manage to obtain the credentials though?