code=499 error when testing / submitting
🐛 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
- Sending code to judge
(node:41492) 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=499]
Guidance: Press Ctrl+Shift+U, and toggle the channel to LeetCode.
Your Environment
- os: Windows 11
- extension settings: default
- nodejs version: v14.18.0
- vscode version: 1.82.3
- extension version: v0.18.1
same here. windows 10.
both node versions 14.1 and 20.8 after updating.
vs code: 1.83
The same error in the web site while run/submit
- change below value and take latest from browser (get the cookie value from the network requests -> request headers), skip the "expiry attribute"
- close the browser
- restart VS code
- login with cookie
- enter below value for username and cookie value both
Value: csrftoken=XYZ; LEETCODE_SESSION=xyz;_dd_s=rum=0
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/