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

I Can't login leetcode.com, the Leetcode Console Pro shows Failed to get code repeatedly. #697

Closed
michael5182 opened this issue Mar 7, 2024 · 15 comments

Comments

@michael5182
Copy link

Desc

Hi there,

Could anyone can help me to deal with this problem?

Pycharm inner error log is below:

java.lang.Throwable: Request userStatus  failed, status:403
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376)
	at com.shuzijun.leetcode.plugin.manager.QuestionManager.getUser(QuestionManager.java:353)
	at com.shuzijun.leetcode.plugin.window.NavigatorTabsPanel.getUser(NavigatorTabsPanel.java:161)
	at com.shuzijun.leetcode.plugin.window.NavigatorTabsPanel.lambda$new$0(NavigatorTabsPanel.java:88)
	at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:840)

Software versions(Help -> About)(Optional)

  • Product: PyCharm 2023.3.4 (Professional Edition)
  • Runtime version: 17.0.10+1-b1087.17 aarch64
  • VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
  • OS: MacOS Sonoma 14.3.1
@HZSHZSHZS
Copy link

same as me

@woung717
Copy link

woung717 commented Mar 7, 2024

I think Leetcode changed their auth method. Other project(vscode-based) also stop working.

@shuzijun
Copy link
Owner

shuzijun commented Mar 7, 2024

leetcode.com adds cloudflare verification, resulting in failure to request data。
image

@michael5182
Copy link
Author

Thanks for the reply.

I can use the browsers to login leetcode.com with passing the cloudflare checking.

But I still have the same problem in Pycharm when I open it.

Any suggestion for this problem?

@shuzijun
Copy link
Owner

shuzijun commented Mar 7, 2024

Thanks for the reply.

I can use the browsers to login leetcode.com with passing the cloudflare checking.

But I still have the same problem in Pycharm when I open it.

Any suggestion for this problem?

I need some time to resolve this issue

@efa2d19
Copy link

efa2d19 commented Mar 7, 2024

same problem, any request will cause 403 from cloudflare
The first solution that comes to mind is using jcef with setOffScreenRendering set to true 🤷🏻‍♂️

@shuzijun
Copy link
Owner

shuzijun commented Mar 8, 2024

The plug-in library is under approval. You can download and install it through the link first.

https://github.com/shuzijun/leetcode-editor/releases/tag/v2024.1.1-pub
https://github.com/shuzijun/leetcode-editor/releases/tag/v8.10

@anshah85
Copy link

anshah85 commented Mar 8, 2024

How to install through the link?

@michael5182
Copy link
Author

How to install through the link?

https://www.jetbrains.com/help/pycharm/managing-plugins.html#install_plugin_from_disk

@anshah85
Copy link

anshah85 commented Mar 9, 2024

I installed through the disk, but it has below issue. I installed the instrumented-leetcode-editor-8.10.jar file from the disk.

image

@shuzijun
Copy link
Owner

@anshah85 Do not unzip, choose zip installation directly.

I installed through the disk, but it has below issue. I installed the instrumented-leetcode-editor-8.10.jar file from the disk.

image

@Mayb11223
Copy link

I've installed plug-in through the link, but i can't submit code or run code and it has no any error info in IDEA, how can I fix this problem

@LRike
Copy link

LRike commented Mar 11, 2024

I've installed plug-in through the link, but i can't submit code or run code and it has no any error info in IDEA, how can I fix this problem

me too....Although the button can click, it will display the request 400.

@shuzijun
Copy link
Owner

I've installed plug-in through the link, but i can't submit code or run code and it has no any error info in IDEA, how can I fix this problem

@Mayb11223 @LRike This is a new issue, will be fixed later

@MaryLiu832
Copy link

Cannot login leetcode from intellij. Login page pop up after some time, verify catcha many times, at last "verified" displayed but login button is grey. Click "login", after a long time, it said verification expired.

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

9 participants