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

Not able to login to leetcode from plugin #672

Open shrawanraina opened 9 months ago

shrawanraina commented 9 months ago

Describe the bug Unable to login to leetcode

To Reproduce Steps to reproduce the behavior:

  1. Open IntelliJ
  2. Click on Leetcode Editor plugin
  3. Click on Sign In
  4. Error: Failed to send request

java.lang.Throwable: Request userStatus failed, status:403 at com.intellij.openapi.diagnostic.Logger.error(Logger.java:202) at com.shuzijun.leetcode.plugin.manager.QuestionManager.getUser(QuestionManager.java:315) at com.shuzijun.leetcode.plugin.window.NavigatorTabsPanel.getUser(NavigatorTabsPanel.java:176) at com.shuzijun.leetcode.plugin.window.NavigatorTabsPanel.lambda$new$0(NavigatorTabsPanel.java:103) at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:246) 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:833)

Software versions(Help -> About)

deerHDE commented 9 months ago

I'm running into the exact same issue just now.

rajvanshipradeep15 commented 6 months ago

Same here not able to login.

rajvanshipradeep15 commented 6 months ago

I followed this link and I was able to login. https://github.com/shuzijun/leetcode-editor/blob/master/doc/LoginHelp.md

selva-krishnan commented 5 months ago

@rajvanshipradeep15 - I never got the popup to enter the cookie information as shown in the screenshot. All I get is the "Failed to send request" in the console.

tech1savvy commented 5 months ago

@rajvanshipradeep15 - I never got the popup to enter the cookie information as shown in the screenshot. All I get is the "Failed to send request" in the console.

+1

akhilss99 commented 5 months ago

@rajvanshipradeep15 - I never got the popup to enter the cookie information as shown in the screenshot. All I get is the "Failed to send request" in the console.

+1

shuzijun commented 5 months ago

@selva-krishnan @tech1savvy @akhilss99 This is a new issue, please refer to #697

rajvanshipradeep15 commented 5 months ago

Hello guys, just make sure you have the right settings in the PHPSTORM

settings_leetcode

Later when you click the signin button you should get the login popup, as shown in the screen shot.

leetcode_login