Skip to content

leetcode test error: invalid type: sequence, expected a string at line 1 column 162 #83

Closed
@kardusenor

Description

@kardusenor

Hello, I encountered a strange problem.

~# leetcode pick 704
~# leetcode edit 704 # return True
~# leetcode test 704
[INFO  leetcode_cli::plugins::leetcode] Sending code to judge...
error: invalid type: sequence, expected a string at line 1 column 162

I have logined in leetcode.com with Microsoft Edge and the exec command works well, and I have checked #55 and #67.
Here is the message when I execute leetcode exec 704

~# leetcode exec 704
[INFO  leetcode_cli::plugins::leetcode] Sending code to judge...

Success

Here is the last part of debug log

2022-07-28T16:01:41Z TRACE leetcode_cli::cache] Run veriy recursion...
[2022-07-28T16:01:41Z TRACE leetcode_cli::plugins::leetcode] Verifying result...
[2022-07-28T16:01:41Z TRACE leetcode_cli::plugins::leetcode::req] Running leetcode::verify_result...
[2022-07-28T16:01:41Z DEBUG leetcode_cli::cache] debug resp raw text:
    "{\"status_code\": 10, \"lang\": \"cpp\", \"run_success\": true, \"status_runtime\": \"3 ms\", \"memory\": 6216000, \"code_answer\": [\"4\", \"-1\"], \"code_output\": [], \"std_output\": [\"\", \"\", \"\"], \"elapsed_time\": 39, \"task_finish_time\": 1659024099990, \"expected_status_code\": 10, \"expected_lang\": \"cpp\", \"expected_run_success\": true, \"expected_status_runtime\": \"3\", \"expected_memory\": 6176000, \"expected_code_answer\": [\"4\", \"-1\"], \"expected_code_output\": [], \"expected_std_output\": [\"\", \"\", \"\"], \"expected_elapsed_time\": 15, \"expected_task_finish_time\": 1659023544000, \"correct_answer\": true, \"compare_result\": \"11\", \"total_correct\": 2, \"total_testcases\": 2, \"runtime_percentile\": null, \"status_memory\": \"6.2 MB\", \"memory_percentile\": null, \"pretty_lang\": \"C++\", \"submission_id\": \"runcode_1659024097.2677104_Wo25CvI7Tn\", \"status_msg\": \"Accepted\", \"state\": \"SUCCESS\"}"
[2022-07-28T16:01:41Z DEBUG leetcode_cli::cache] debug json deserializing:
    Err(
        Error("invalid type: sequence, expected a string", line: 1, column: 162),
    )
error: invalid type: sequence, expected a string at line 1 column 162

The entire log is so long that I cannot paste it here. If anyone needs it, I will paste later

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions