Cant't sign in leetcode.cn, raise timeout
I use windows10, I sign with cookie after installed raise this error:
the cookie I use is from this place, it seems no problem:
I use cn= leetcom.cn , config as
opts = {
cn = {
enabled = true,
},
},
the detail error info is below:
Error executing vim.schedule lua callback: ...ta/Local/nvim-data/lazy/plenary.nvim/lua/plenary/job.lua:500: 'curl -sSL -D C:\Users\Administrator\AppData\Local\Temp\plenary_curl_905e4572.headers -X POST -H Origin: https://leetcode.cn/ -H Referer: https://leetcode.cn -H Content-Type: application/json -H Accept: application/json -H X-Requested-With: XMLHttpRequest -H User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0 -H X-Csrftoken: fuRpYTaszdT30wek4v8AF4LNNln0tbK5U89VDnGXfdo8tbF25pFFwFJsfES86UmU -H Host: leetcode.cn -H Cookie: {MY_COOKIE} --data-raw {"variables":[],"query":" query globalData {\n userStatus {\n slug: userSlug\n name: username\n real_name: realName\n is_signed_in: isSignedIn\n is_premium: isPremium\n is_verified: isVerified\n }\n }\n "} --http2 https://leetcode.cn/graphql/' was unable to complete in 10000 ms
stack traceback:
[C]: in function 'error'
...ta/Local/nvim-data/lazy/plenary.nvim/lua/plenary/job.lua:500: in function 'wait'
...ta/Local/nvim-data/lazy/plenary.nvim/lua/plenary/job.lua:454: in function 'sync'
...a/Local/nvim-data/lazy/plenary.nvim/lua/plenary/curl.lua:317: in function <...a/Local/nvim-data/lazy/plenary.nvim/lua/plenary/curl.lua:268>
.../nvim-data/lazy/leetcode.nvim/lua/leetcode/api/utils.lua:92: in function 'query'
...l/nvim-data/lazy/leetcode.nvim/lua/leetcode/api/auth.lua:22: in function 'user'
...im-data/lazy/leetcode.nvim/lua/leetcode/cache/cookie.lua:29: in function 'set'
...im-data/lazy/leetcode.nvim/lua/leetcode/command/init.lua:59: in function 'on_submit'
...ata/Local/nvim-data/lazy/nui.nvim/lua/nui/input/init.lua:162: in function <...ata/Local/nvim-data/lazy/nui.nvim/lua/nui/input/init.lua:149>
similar issue, but with leetcode.cn.enabled == false
same on windows
I have the same problem as well in windows 10. Investigating right now.
I resolved the problem by updating the curl to 8.10.1. It seems that the older version of libcurl is not compatible with (curl) --http2 argument.
same problem, i use termux in android. my curl version is 8.11.0
Please use cygwin if you're a windows user. https://github.com/nvim-lua/plenary.nvim/pull/556
same problem, i use termux in android. my curl version is 8.11.0
What error are you getting?
same problem, i use termux in android. my curl version is 8.11.0
What error are you getting?
I pasted my cookie, and then this error reporting would occur. I used the cn version of leetcode.
same problem, i use termux in android. my curl version is 8.11.0
What error are you getting?
![]()
https://github.com/nvim-lua/plenary.nvim/issues/536 could you check if any of the tips here fix your issue?
same problem, i use termux in android. my curl version is 8.11.0
What error are you getting?
![]()
nvim-lua/plenary.nvim#536 could you check if any of the tips here fix your issue?
i am so happy that it work,thanks
