[go: nahoru, domu]

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

Can't login with the token #37

Closed
LucasLBrandao opened this issue May 28, 2021 · 9 comments
Closed

Can't login with the token #37

LucasLBrandao opened this issue May 28, 2021 · 9 comments
Labels
bug Something isn't working

Comments

@LucasLBrandao
Copy link

Hi, i have issue when trying to login in datacamp.
First i used the datacamp login command, testing both email and username, and in both cases the terminal return the following message:

WARNING: Couldn't run login with inputs ('MYUSERNAME', 'MYPASSWORD')

Then i tried the command set-token, following the instructions in documentation to get the token from Development tools, coping and pasting the Value of _dct key after the command. when i run the command, the terminal returned the following ERROR message:

ERROR: Incorrect input token!

I have verified in the development tool the presence of an authentication token in Storage cookies and tried that token in the command too, but I got the same error message.

@TRoboto TRoboto added the bug Something isn't working label May 28, 2021
@TRoboto
Copy link
Owner
TRoboto commented May 28, 2021

Thank you for reporting this bug. After investigation, it turns out that this is related to Cloudflare protection. It may take some time before this issue is resolved. Contributions to solving this problem are most welcome.

@akhdanfadh
Copy link

I also have this problem. I hope the developer can fix it soon, thanks a lot!

@ricardeb
Copy link

I have the same issue, I couldn't login with my user / pass and neither with my token. Hopefully would be a fix soon.

Thank you so much for this awesome tool!

@jorritvm
Copy link
jorritvm commented Aug 7, 2021

FYI, I tried upgrading cloud scraper from 1.2.56 (which is currently required by datacamp-downloader) to 1.2.58 as this version incorporates latest changes with cloudflare but it did not solve the issue for me.

@TRoboto
Copy link
Owner
TRoboto commented Aug 8, 2021

Hopefully by the end of next week, this issue will be resolved. Next patch will also include better error messages.

For clarity, the issue is due Cloudflare protection v2 as denoted by cloudscraper.

CloudflareChallengeError: Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.

@TRoboto
Copy link
Owner
TRoboto commented Aug 10, 2021

Version 3.0 is finally out in PR #39. I'd love to hear your feedback about the new version, especially on this issue.

@jorritvm
Copy link

Hey, I added the result of my functional tests on the V3 PR. The login issue seems fixed so this can be closed in my opinion. Other issues are listed in the PR.

@TRoboto
Copy link
Owner
TRoboto commented Aug 10, 2021

Thank you. This issue will be closed once the PR is merged.

@TRoboto
Copy link
Owner
TRoboto commented Aug 11, 2021

Closing this issue as it has been resolved with the new version.

@TRoboto TRoboto closed this as completed Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants