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

DenyLoginSubtask - TWITTER #1431

Closed
didintern opened this issue Dec 24, 2024 · 13 comments
Closed

DenyLoginSubtask - TWITTER #1431

didintern opened this issue Dec 24, 2024 · 13 comments
Labels
bug Something isn't working Needs Testing

Comments

@didintern
Copy link

Describe the bug

⛔ Login attempt failed: Authentication error: DenyLoginSubtask"

To Reproduce

Run the server with version (v0.1.7-alpha.1)

Even though my twitter creds are correct its throwing error In twitter I can see that a new login message.

Expected behavior

Should login to twitter and post tweets

Screenshots
image

@didintern didintern added the bug Something isn't working label Dec 24, 2024
@MERNinja
Copy link

image Any update on this? I am facing the same issue

@AIFlowML
Copy link
Collaborator

AIFlowML commented Jan 6, 2025

We wait the merge to close this issue.

@Rosie0510
Copy link

Hi, is this issued fixed?

@imerku1ov
Copy link

The same

@LinuxIsCool
Copy link
Contributor

Same issue.

@tcm390
Copy link
Collaborator

tcm390 commented Jan 18, 2025

This should fix the issue: #2225 (comment)

@Rosie0510
Copy link

I tried #2225, but not work

@ikhana
Copy link

ikhana commented Jan 19, 2025

Has anyone found any solution around this issue please ,

@imerku1ov
Copy link

@ikhana using TWITTER_COOKIES helped me

TWITTER_COOKIES='[
{"key":"auth_token","value":"HERE_YOUR_VALUE","domain":".x.com"},
{"key":"ct0","value":"HERE_YOUR_VALUE","domain":".x.com"},
{"key":"guest_id","value":"HERE_YOUR_VALUE","domain":".x.com"}
]'

@tcm390
Copy link
Collaborator

tcm390 commented Jan 27, 2025

@ikhana using TWITTER_COOKIES helped me

TWITTER_COOKIES='[ {"key":"auth_token","value":"HERE_YOUR_VALUE","domain":".x.com"}, {"key":"ct0","value":"HERE_YOUR_VALUE","domain":".x.com"}, {"key":"guest_id","value":"HERE_YOUR_VALUE","domain":".x.com"} ]'

Yea just confirmed this helped me as well:

const cookieStrings = [
    {
      key: 'auth_token',
      value: 'your value',
      domain: '.twitter.com',
    },
    {
      key: 'ct0',
      value: 'your value',
      domain: '.twitter.com',
    },
    { key: 'guest_id', value: 'your value, domain: '.twitter.com' },
  ].map(
    (cookie: any) =>
      `${cookie.key}=${cookie.value}; Domain=${cookie.domain}; Path=${
        cookie.path
      }; ${cookie.secure ? 'Secure' : ''}; ${
        cookie.httpOnly ? 'HttpOnly' : ''
      }; SameSite=${cookie.sameSite || 'Lax'}`,
  );


 await scraper.setCookies(cookieStrings);

@re-du-backup
Copy link

@tcm390 for me it was working fine even with just auth_token but now neither the full auth_token nor the full cookies are working though , guess this might be just something broken in recent development branch

@LinuxIsCool
Copy link
Contributor

Works for me. I put in my .env:

CHARACTER.CHARACTER_NAME.TWITTER_COOKIES=[{"key":"auth_token","value":"","domain":".twitter.com"},{"key":"ct0","value":"","domain":".twitter.com"},{"key":"guest_id","value":"","domain":".twitter.com"}] # Account cookies

@tcm390
Copy link
Collaborator

tcm390 commented Feb 5, 2025

@tcm390 for me it was working fine even with just auth_token but now neither the full auth_token nor the full cookies are working though , guess this might be just something broken in recent development branch

this pr should fix it: #3278

@tcm390 tcm390 closed this as completed Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs Testing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants