kawre / leetcode.nvim

A Neovim plugin enabling you to solve LeetCode problems.
MIT License
655 stars 34 forks source link

Invalid cookie when sign in #7

Closed bacnx closed 8 months ago

bacnx commented 8 months ago

Hi, when I sign in to leetcode by Cookie, I get an error: Error executing vim.schedule lua callback: ...packer\start\leetcode.nvim/lua/leetcode/cache/cookie.lua:25: Invalid cookie stack traceback: [C]: in function 'error' ...packer\start\leetcode.nvim/lua/leetcode/cache/cookie.lua:25: in function 'update' ...pack\packer\start\leetcode.nvim/lua/leetcode/command.lua:45: in function 'on_submit' ...a\site\pack\packer\start\nui.nvim/lua/nui/input/init.lua:160: in function <...a\site\pack\packer\start\nui.nvim/lua/nui/input/init.lua:147> image image image

I'm using Windows 11 and packer.nvim.

kawre commented 8 months ago

Is your leetcode account verified via email?

bacnx commented 8 months ago

Yes image

kawre commented 8 months ago

Its an issue with your curl not supporting --compressed flag. Do any of these fix your problem? https://superuser.com/questions/1482661/where-to-get-libcurl-for-windows-with-compressed-option-enabled https://imperioweb.net/en/fix-curl-option-compressed-doesnt-support-this-cygwin https://stackoverflow.com/questions/59844774/not-able-to-run-curl-command-from-windows-command-prompt-but-can-run-it-from-cyg