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

Fix login error #13

Open
lucasvtiradentes opened this issue Jan 9, 2024 · 1 comment
Open

Fix login error #13

lucasvtiradentes opened this issue Jan 9, 2024 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@lucasvtiradentes
Copy link
Owner

lucasvtiradentes commented Jan 9, 2024

This is a gmail chat where I explain this error

image

image

@lucasvtiradentes lucasvtiradentes added bug Something isn't working help wanted Extra attention is needed labels Jan 9, 2024
@lucasvtiradentes lucasvtiradentes self-assigned this Jan 9, 2024
@I-Dont-Remember
Copy link

I-Dont-Remember commented Feb 9, 2024

Not sure if it is the same issue, but I was able to get a simple local script (similar to this repos ) working once I pulled a bunch of headers from the actual requests the webapp client is sending. It's possible my account is bypassing captcha somehow, but i'll leave the minimal headers that worked in case they help with debugging:

const browserHeaders = {
  'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0',
  Accept: '*/*',
  'Accept-Language': 'en-US,en;q=0.5',
  'Accept-Encoding': 'gzip, deflate, br',
  Referer: 'https://www.ticktick.com/',
  'X-Device': '{"platform":"web","os":"Windows 10","device":"Firefox 122.0","name":"","version":5070,"id":"6235fe7bac5d867b31382f52","channel":"website","campaign":"","websocket":""}',
  'X-Requested-With': 'XMLHttpRequest',
  Origin: 'https://www.ticktick.com',
  DNT: '1',
  'Sec-GPC': '1',
  'Sec-Fetch-Dest': 'empty',
  'Sec-Fetch-Mode': 'cors',
  'Sec-Fetch-Site': 'same-site',
  'Content-Type': 'application/json'
}

Comparing to ya'lls existing headers - I wonder if maybe tweaking the X-Device, or adding Origin & Referer would help. Maybe even adding a bit of randomness so everyone using the package doesn't have the exact same headers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants