leetcode-cli
leetcode-cli copied to clipboard
submit error
Problem Summary
cannot Submit/Test Problem ,but login and pull has no problem
How to reproduce
[TRACE] initializing all plugins
[TRACE] found plugin: cache=default
[TRACE] found plugin: company=2017.12.18
[TRACE] found plugin: leetcode.cn=2018.11.25
[TRACE] found plugin: leetcode=default
[TRACE] found plugin: retry=default
[TRACE] found plugin: solution.discuss=2019.02.03
[TRACE] inited plugin: leetcode
[TRACE] skipped plugin: leetcode.cn
[TRACE] inited plugin: retry
[TRACE] inited plugin: cache
[TRACE] inited plugin: company
[TRACE] inited plugin: solution.discuss
[DEBUG] cache hit: problems.json
[DEBUG] cache hit: 83.remove-duplicates-from-sorted-list.algorithms.json
[DEBUG] running leetcode.submitProblem
⠋ Sending code to judge[TRACE] REQUEST %s { url:
'https://leetcode.com/problems/remove-duplicates-from-sorted-list/submit/',
headers:
{ Cookie:
<hidden>,
'X-CSRFToken': <hidden>,
'X-Requested-With': 'XMLHttpRequest',
Origin: 'https://leetcode.com',
Referer:
'https://leetcode.com/problems/remove-duplicates-from-sorted-list/description/' },
body:
{ judge_type: 'large',
lang: 'golang',
question_id: 83,
test_mode: false,
typed_code:
'/**\n * Definition for singly-linked list.\n * type ListNode struct {\n * Val int\n * Next *ListNode\n * }\n */\nfunc deleteDuplicates(head *ListNode) *ListNode {\n\tif head == nil || head.Next == nil {\n\t\treturn head\n\t}\n\tprev := head\n\tnext := head.Next\n\tfor next != nil {\n\t\t//1->2->2->3\n\t\tif prev.Val == next.Val {\n\t\t\tnext = next.Next\n\t\t\tprev.Next = next\n\t\t} else {\n\t\t\tprev = next\n\t\t\tnext = next.Next\n\t\t}\n\t}\n\treturn head\n}\n' },
method: 'POST',
json: true,
_delay: 1,
callback: [Function] }
[TRACE] REQUEST %s make request https://leetcode.com/problems/remove-duplicates-from-sorted-list/submit/
⠇ Sending code to judge[TRACE] REQUEST %s onRequestResponse https://leetcode.com/problems/remove-duplicates-from-sorted-list/submit/ 499 { date: 'Sat, 26 Dec 2020 03:32:31 GMT',
'content-type': 'text/html; charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
'set-cookie':
[ '__cfduid=*****; expires=Mon, 25-Jan-21 03:32:31 GMT; path=/; domain=.leetcode.com; HttpOnly; SameSite=Lax',
'LEETCODE_SESSION==*****;; Domain=.leetcode.com; expires=Sat, 09 Jan 2021 03:32:31 GMT; HttpOnly; Max-Age=1209600; Path=/; SameSite=Lax; Secure' ],
'x-frame-options': 'DENY',
vary: 'Cookie',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
'cf-cache-status': 'DYNAMIC',
'cf-request-id': '=*****;',
'expect-ct':
'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
'report-to':
'{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report?s=DiojVr1X%=*****;%2B2hrcR%2Bew%=*****;%3D"}],"group":"cf-nel","max_age":604800}',
nel: '{"report_to":"cf-nel","max_age":604800}',
'x-content-type-options': 'nosniff',
server: 'cloudflare',
'cf-ray': '6077bc2f9ce81a19-SIN' }
[TRACE] REQUEST %s reading response's body
[TRACE] REQUEST %s finish init function https://leetcode.com/problems/remove-duplicates-from-sorted-list/submit/
⠏ Sending code to judge[TRACE] REQUEST %s response end https://leetcode.com/problems/remove-duplicates-from-sorted-list/submit/ 499 { date: 'Sat, 26 Dec 2020 03:32:31 GMT',
'content-type': 'text/html; charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
'set-cookie':
[ '__cfduid==*****;; expires=Mon, 25-Jan-21 03:32:31 GMT; path=/; domain=.leetcode.com; HttpOnly; SameSite=Lax',
'LEETCODE_SESSION==*****;; Domain=.leetcode.com; expires=Sat, 09 Jan 2021 03:32:31 GMT; HttpOnly; Max-Age=1209600; Path=/; SameSite=Lax; Secure' ],
'x-frame-options': 'DENY',
vary: 'Cookie',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
'cf-cache-status': 'DYNAMIC',
'cf-request-id': '=*****;',
'expect-ct':
'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
'report-to':
'{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report?s=DiojVr1X%=*****;%2B2hrcR%2Bew%=*****;%3D"}],"group":"cf-nel","max_age":604800}',
nel: '{"report_to":"cf-nel","max_age":604800}',
'x-content-type-options': 'nosniff',
server: 'cloudflare',
'cf-ray': '6077bc2f9ce81a19-SIN' }
[TRACE] REQUEST %s end event https://leetcode.com/problems/remove-duplicates-from-sorted-list/submit/
[TRACE] REQUEST %s has body https://leetcode.com/problems/remove-duplicates-from-sorted-list/submit/ 24154
[TRACE] REQUEST %s invalid JSON received https://leetcode.com/problems/remove-duplicates-from-sorted-list/submit/
[TRACE] REQUEST %s emitting complete https://leetcode.com/problems/remove-duplicates-from-sorted-list/submit/
[DEBUG] http error: 499
[ERROR] http error [code=499]
Environment
- leetcode-cli version: v2.7.0
- OS version: wsl2 、4.19.128-microsoft-standard
- Node version: v10.23.0
- Npm version: v6.14.8
_ _ _
| | | | | |
| | ___ ___| |_ ___ ___ __| | ___
| |/ _ \/ _ \ __|/ __|/ _ \ / _` |/ _ \
| | __/ __/ |_ (__| (_) | (_| | __/
|_|\___|\___|\__|\___|\___/ \__,_|\___| CLI v2.7.0
[Environment]
Node v10.23.0
OS linux 4.19.128-microsoft-standard
Cache /home/***/.lc/leetcode/cache
Config /home/***/.lc/config.json
[Configuration]
autologin {"enable":false,"retry":2}
code {"editor":"vim","lang":"cpp"}
file {"show":"${fid}.${slug}","submission":"${fid}.${slug}.${sid}.${ac}"}
color {"enable":true,"theme":"default"}
icon {"theme":""}
network {"concurrency":10,"delay":1}
app "leetcode"
[Themes]
Colors blue,dark,default,molokai,orange,pink,solarized,solarized.light
Icons ascii,default,win7
[Plugins]
solution.discuss 2019.02.03
company 2017.12.18
cache default
retry default
leetcode.cn 2018.11.25
leetcode default
Thanks