Skip to content

提交不可用 #304

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

Open
wnykuang opened this issue Mar 5, 2024 · 7 comments
Open

提交不可用 #304

wnykuang opened this issue Mar 5, 2024 · 7 comments

Comments

@wnykuang
Copy link

wnykuang commented Mar 5, 2024

🐛 Bug Report(错误报告)

case|| all case
按了之后会显示{"msg":"http error","statusCode":499}
但是不会有任何反应

To Reproduce(重现)

  • 登陆leetcode-us
  • 做题
  • 按下case或者all case

Steps to reproduce the behavior.(重现的步骤。)

Expected behavior(预期行为)

  • 应该在右侧显示测试结果

A clear and concise description of what you expected to happen.(对您期望发生的事情进行清晰简洁的描述。)

Extension Output(扩展输出)

{"code":100,"msg":{"url":"https://leetcode.com/problems/median-of-two-sorted-arrays/description/","category":"algorithms","difficulty":"Hard (39.28%)","likes":"27474","dislikes":"3030","desc":"<p>Given two sorted arrays <code>nums1</code> and <code>nums2</code> of size <code>m</code> and <code>n</code> respectively, return <strong>the median</strong> of the two sorted arrays.</p>\n\n<p>The overall run time complexity should be <code>O(log (m+n))</code>.</p>\n\n<p>&nbsp;</p>\n<p><strong class=\"example\">Example 1:</strong></p>\n\n<pre>\n<strong>Input:</strong> nums1 = [1,3], nums2 = [2]\n<strong>Output:</strong> 2.00000\n<strong>Explanation:</strong> merged array = [1,2,3] and median is 2.\n</pre>\n\n<p><strong class=\"example\">Example 2:</strong></p>\n\n<pre>\n<strong>Input:</strong> nums1 = [1,2], nums2 = [3,4]\n<strong>Output:</strong> 2.50000\n<strong>Explanation:</strong> merged array = [1,2,3,4] and median is (2 + 3) / 2 = 2.5.\n</pre>\n\n<p>&nbsp;</p>\n<p><strong>Constraints:</strong></p>\n\n<ul>\n\t<li><code>nums1.length == m</code></li>\n\t<li><code>nums2.length == n</code></li>\n\t<li><code>0 &lt;= m &lt;= 1000</code></li>\n\t<li><code>0 &lt;= n &lt;= 1000</code></li>\n\t<li><code>1 &lt;= m + n &lt;= 2000</code></li>\n\t<li><code>-10<sup>6</sup> &lt;= nums1[i], nums2[i] &lt;= 10<sup>6</sup></code></li>\n</ul>\n"}}
{"msg":"http error","statusCode":499}
{"msg":"http error","statusCode":499}

Paste here the LeetCode extension log from output channel.(将输出通道中的 LeetCode 扩展日志粘贴到此处。)

Guidance: Press Ctrl+Shift+U, and toggle the channel to LeetCode.(按Ctrl+Shift+U,将频道切换到LeetCode。)

Your Environment

  • os(操作系统): osx 12.6.6 (21G646)
  • extension settings(扩展设置):
  • nodejs version(nodejs 版本): v21.6.1.
  • vscode version(vscode 版本): Version: 1.87.0
  • extension version(扩展版本):v3.1.18
@ccagml
Copy link
Owner

ccagml commented Mar 9, 2024

3.1.19

@wnykuang
Copy link
Author

更新之后并没有解决这个问题:

{"msg":"http error","statusCode":499}

@ccagml
Copy link
Owner

ccagml commented Mar 10, 2024

那不清楚了,是不是网络有问题,你官方插件能用吗

@mole828
Copy link

mole828 commented Mar 12, 2024

官方插件的也有问题,是基于leetcode-cli所导致的。
据说近日leetcode有受到攻击?所以加上了cloudflare,http检查变严格了。
LeetCode-OpenSource/vscode-leetcode#927

@wnykuang
Copy link
Author

官方插件的也有问题,是基于leetcode-cli所导致的。 据说近日leetcode有受到攻击?所以加上了cloudflare,http检查变严格了。 LeetCode-OpenSource/vscode-leetcode#927

thanks man 我还没测

最近lc 还暂停了7分钟服务来更新
我觉得是做了大改动了

顺便一提我觉得官方的没有这个好

@ccagml
Copy link
Owner

ccagml commented Mar 28, 2024

可以试试用新的登录国际站的方式,
选中复制最后一个 graphql 请求右键->复制-> 以 cURL(bash)格式复制
插件登录选择 使用 cURL Cookie 方式登录,输入账号,输入复制来的 cURL(bash)格式请求数据

@mole828
Copy link

mole828 commented Mar 28, 2024

新的登录方式可以正常运行

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

3 participants