shuzijun / leetcode-editor

Do Leetcode exercises in IDE, support leetcode.com and leetcode-cn.com, to meet the basic needs of doing exercises.Support theoretically: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio
https://plugins.jetbrains.com/plugin/12132-leetcode-editor
Apache License 2.0
3.7k stars 399 forks source link

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

Closed michael5182 closed 5 months ago

michael5182 commented 5 months ago

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)

HZSHZSHZS commented 5 months ago

same as me

woung717 commented 5 months ago

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

shuzijun commented 5 months ago

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

image
michael5182 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

How to install through the link?

michael5182 commented 5 months ago

How to install through the link?

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

anshah85 commented 5 months ago

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 commented 5 months ago

@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 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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 commented 3 months ago

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.