Closed rgbygv closed 7 months ago
Since you're using cookies, have you configured all three env vars – LEETCODE_SESSION
, LEETCODE_CSRFTOKEN
, and LEETCODE_CFCLEARANCE
– to access leetcode.com
?
Yes of course. I created a function like this in pwsh to differentiate between us and cn.
function us{
$env:LEETCODE_SESSION="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJfYXV0aF91c2VyX2lkIjoiNDMzOTYzOSIsIl9hdXRoX3VzZXJfYmFja2VuZCI6ImFsbGF1dGguYWNjb3VudC5hdXRoX2JhY2tlbmRzLkF1dGhlbnRpY2F0aW9uQmFja2VuZCIsIl9hdXRoX3VzZXJfaGFzaCI6ImY4MjBmNmM..."
$env:LEETCODE_CSRFTOKEN="w31CEXc7nkdUDuSPdHLnhdKoYV7Rgia..."
$env:LEETCODE_CFCLEARANCE="ntOKjS2Rz9PsrvzQoDujserauLAU3MYGlyqhjpcDyjc-1712317600-1.0.1.1..."
}
I tried logging back in (of cource .com) and replacing the three envs with new ones but still can't submit. If you can't reproduce the issue, maybe there's something wrong with my browser. I will test it a few times and give feedback.
Sorry, I can't reproduce on my side, either by setting cookies env var or by fetching cookies from browser automatically. Could you try using feching cookies from browsers automatically?
Thanks, I download a new browser then try using automatic get cookie from browser and now it works. Maybe there's something wrong with my origin browser.
leetgo debug
Leetgo version info :
Home dir : C:\Users\admin.config\leetgo Project root : C:\Users\admin\leetcode Working dir : C:\Users\admin\leetcode\rust Project config file : C:\Users\admin\leetcode\leetgo.yaml Project configuration:
Full configuration :
Debug log
No response
Description
Something strange here,
● submitting solution user=@leetcode.com
, seems like it doesn't recognize my username I tried changing my cookies but the problem persists.