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

Unable to authenticate #16

Closed
arorashivoy opened this issue Oct 28, 2023 · 7 comments
Closed

Unable to authenticate #16

arorashivoy opened this issue Oct 28, 2023 · 7 comments

Comments

@arorashivoy
Copy link

image

When I am logging in the api returns meta name as robot and I am unable to login. Even after doing :Leet fix and re-signing using the cookie it takes me to the menu but is unable to fetch problems with error user not signed in

image

Also, when I open leetcode on browser as well it is making me check I am not a robot checkbox.

@kawre
Copy link
Owner

kawre commented Oct 28, 2023

Sadly leetcode does have often server outages and one way of dealing with this is they enable some sort of pre user authentication via cloudflare. Same thing happend earlier today and it lasted at most few hours.

As of now i have no clue how this authentication works but i will look into this and maybe find ways to bypass this

@kawre kawre pinned this issue Oct 28, 2023
@tvntvn13
Copy link

Having the same issue. It seems to be a leetcode related problem, as the LeetBuddy.nvim isn't able to authenticate either. Hope it'll be only a temporary thing.

@arorashivoy
Copy link
Author

I found a python module named cloudscraper. This module is specifically used to bypass this and since cloudflare changes it frequently it would be a lot of work handling that on your own.

So, I think this library can help it might still say unable to authenticate when sometimes cloudflare changes it way but the guy who made this says he will update this repo frequently.

If you want I can help with this project. I would just need some KT as I have never worked on a nvim plugin as I am pretty new to neovim community but would love to get started.

@darzok0914
Copy link

I had the same issue earlier using a personal app based on curl. I looked into it and yes it seems to be a cloudfare anti bot security feature.

After doing some googling I found this link

https://www.zenrows.com/blog/bypass-cloudflare#passive-bot-detection

That explains how to bypass that. I'll try on my end next week

@kawre
Copy link
Owner

kawre commented Oct 29, 2023

@arorashivoy if you want to collaborate, open a pull request. I will let you know about the rest tomorrow

@cambp4
Copy link

cambp4 commented Oct 30, 2023

The problem is gone on my end, is this still an issue for others?

@kawre
Copy link
Owner

kawre commented Dec 26, 2023

Closing because, from my understanding, this is not something that I can fix. From what I've observed, this additional authentication shouldn't last more than a few days at a time at most.

@kawre kawre closed this as not planned Won't fix, can't repro, duplicate, stale Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants