Skip to content

Login error 401 - Could not authenticate you #190

Description

@logesh2496

I was getting the #189 error and the fix to update the dependency package worked until yesterday the scraper started failing when logging in. Below is the error:

ApiError: Response status: 401 | headers: "access-control-allow-credentials: true\naccess-control-allow-origin: https://x.com\naccess-control-expose-headers: Backoff-Policy,Content-Length,X-TD-Mtime,X-Acted-As-User-Id,X-Rate-Limit-Limit,X-Rate-Limit-Remaining,X-Rate-Limit-Reset,X-Response-Time,X-Transaction-Id,X-Twitter-Client,X-Twitter-Client-Version,X-Twitter-Diffy-Request-Key,X-Twitter-Polling,X-Twitter-Spotify-Access-Token,X-Twitter-UTCOffset\ncache-control: no-cache, no-store, max-age=0\ncf-cache-status: DYNAMIC\ncf-ray: 9e372098184ed354-FRA\ncontent-type: application/json;charset=utf-8\ndate: Sat, 28 Mar 2026 13:54:32 GMT\norigin-cf-ray: 9e372098184ed354-FRA\nperf: 7402827104\nserver: cloudflare envoy\nstrict-transport-security: max-age=631138519; includeSubdomains\nvary: accept-encoding\nx-response-time: 12\nx-served-by: t4_a\nx-transaction-id: 7077ef3b4f07e0fb" | data: {"errors":[{"message":"Could not authenticate you","code":32}]}
at ApiError.fromResponse (/node/cjs/index.cjs:58:12)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async TwitterUserAuth.executeFlowTask (/node/cjs/index.cjs:1058:38)
at async TwitterUserAuth.handleSuccessSubtask (/node/cjs/index.cjs:986:12)
at async TwitterUserAuth.login (/node/cjs/index.cjs:744:16)
at async Scraper.login (/node/cjs/index.cjs:2991:5)

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions