LeetCode-OpenSource / vscode-leetcode

Solve LeetCode problems in VS Code
https://marketplace.visualstudio.com/items?itemName=shengchen.vscode-leetcode
MIT License
8.22k stars 651 forks source link

code=499 error when testing / submitting #906

Open leepogii opened 1 year ago

leepogii commented 1 year ago

🐛 Bug Report

Hi, when I submit or test with default test cases it does not work and shows error messages instead. Is this a problem that happens on my end? Could you help with this issue? Thanks for the great extension btw.

To Reproduce

Just clicking submit or test.

Expected behavior

It should do the submitting / testing.

Extension Output

Guidance: Press Ctrl+Shift+U, and toggle the channel to LeetCode.

Your Environment

JonSolo11 commented 1 year ago

same here. windows 10.

both node versions 14.1 and 20.8 after updating.

vs code: 1.83

KingMario commented 1 year ago

The same error in the web site while run/submit

g-akshay commented 10 months ago
  1. change below value and take latest from browser (get the cookie value from the network requests -> request headers), skip the "expiry attribute"
  2. close the browser
  3. restart VS code
  4. login with cookie
  5. enter below value for username and cookie value both

Value: csrftoken=XYZ; LEETCODE_SESSION=xyz;_dd_s=rum=0

kirbah commented 10 months ago

I had the same trouble with the test/submit and 499 error in console. It was solved once I copied full cookie. To get full cookie I just opened F12 - Network and navigated to Problems link - https://leetcode.com/problemset/