Skip to content

点击 Test 出错 [ERROR] http error [code=301] #799

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

Closed
doubley318 opened this issue May 9, 2022 · 14 comments
Closed

点击 Test 出错 [ERROR] http error [code=301] #799

doubley318 opened this issue May 9, 2022 · 14 comments

Comments

@doubley318
Copy link

可以通过VScode登录leetcode,也可以刷新题目的列表,但是当我写好代码之后点击测试(Test),就会出错:

- Sending code to judge
(node:6604) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
[ERROR] http error [code=301]

image

点击提交(`Submit`),也无法出现正确的画面:

image

怎么解决呢?
@wangp-blog
Copy link

出现了同样的问题,然后退出账号之后就登不上了。可能是leetcode.cn也改变了登录验证机制吧

@scientiacoder
Copy link

+1 相同问题

@labuladong
Copy link

是登录域名的问题,我基于官方插件修改的版本修复了这个问题,详情看这里:labuladong 的 vscode 刷题插件

@allwellll
Copy link

me too.

@Lyncien
Copy link

Lyncien commented May 9, 2022

可以临时修改 %home%\.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.cn.js 文件,替换配置中所有的 https://leetcode-cn.comhttps://leetcode.cn 即可正常提交

@Chever-John
Copy link

@Lyncien This solution works!

@doubley318
Copy link
Author

可以临时修改 %home%\.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.cn.js 文件,替换配置中所有的 https://leetcode-cn.comhttps://leetcode.cn 即可正常提交

太强了!!!

@bhllssjdhj
Copy link

bhllssjdhj commented May 9, 2022

vim用户见下:
:1,$s/word1/word2/g:将全文的word1替换为word2

@9939zhonghuajia
Copy link

可以临时修改 %home%\.vscode\extensions\leetcode.vscode-leetcode-0.18.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.cn.js 文件,替换配置中所有的 https://leetcode-cn.comhttps://leetcode.cn 即可正常提交

那请问一下怎么修改

@Chever-John
Copy link

@9939zhonghuajia It is clear! Which OS do you use?

@9939zhonghuajia
Copy link

@9939zhonghuajia It is clear! Which OS do you use?

windows

@Chever-John
Copy link

@9939zhonghuajia It is clear! Which OS do you use?

windows

If it were me, I would choose to use the everything tool to find the configuration file I should change, as shown in this reply.
Then modify it~

@9939zhonghuajia
Copy link

那你解决这个问题了嘛。By the way,did you solve the problem??

@Chever-John
Copy link

@9939zhonghuajia
I managed to solve the problem on my macOS.

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